-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'rest_framework' #26
Comments
Did you press the green run button on repliy?
…On Wed, May 25, 2022 at 10:01 AM kmrn777 ***@***.***> wrote:
i try to run your project (python manage.py runserver) and what i get on
cmd is:
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File
"C:\Users\kmrn_\AppData\Local\Programs\Python\Python310\lib\threading.py",
line 1009, in
*bootstrap_inner self.run() File "C:\Users\kmrn*\AppData\Local\Programs\Python\Python310\lib\threading.py",
line 946, in run
self.
*target(*self.args, **self.kwargs) File
"C:\Users\kmrn\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\autoreload.py",
line 64, in wrapper fn(*args, **kwargs) File
"C:\Users\kmrn\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\commands\runserver.py",
line 125, in inner_run autoreload.raise_last_exception() File
"C:\Users\kmrn*\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\autoreload.py",
line 87, in raise_last_exception
raise
*exception[1] File "C:\Users\kmrn*
\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management_
*init*_.py", line 398, in execute
autoreload.check_errors(django.setup)()
File
"C:\Users\kmrn_\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\autoreload.py",
line 64, in wrapper
fn(*args, **kwargs)
File
"C:\Users\kmrn_\AppData\Local\Programs\Python\Python310\lib\site-packages\django_
*init*_.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File
"C:\Users\kmrn_\AppData\Local\Programs\Python\Python310\lib\site-packages\django\apps\registry.py",
line 91, in populate
app_config = AppConfig.create(entry)
File
"C:\Users\kmrn_\AppData\Local\Programs\Python\Python310\lib\site-packages\django\apps\config.py",
line 228, in create
import_module(entry)
File "C:\Users\kmrn_\AppData\Local\Programs\Python\Python310\lib\importlib_
*init*_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'rest_framework'
—
Reply to this email directly, view it on GitHub
<#26>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOQDF4B3WYBXZM6WUHXC4GLVLZMFLANCNFSM5W5ZDEZQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@Gabriel7553 excuse me? |
If you are using windows you should use virtualenv then run the server |
Make sure you run: To check if you have it installed, run: Good Luck! |
i try to run your project (python manage.py runserver) and what i get on cmd is:
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\kmrn_\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in bootstrap_inner
self.run()
File "C:\Users\kmrn\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
self.target(*self.args, **self.kwargs)
File "C:\Users\kmrn\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "C:\Users\kmrn\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\commands\runserver.py", line 125, in inner_run
autoreload.raise_last_exception()
File "C:\Users\kmrn\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\autoreload.py", line 87, in raise_last_exception
raise exception[1]
File "C:\Users\kmrn\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management_init_.py", line 398, in execute
autoreload.check_errors(django.setup)()
File "C:\Users\kmrn_\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "C:\Users\kmrn_\AppData\Local\Programs\Python\Python310\lib\site-packages\django_init_.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\kmrn_\AppData\Local\Programs\Python\Python310\lib\site-packages\django\apps\registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "C:\Users\kmrn_\AppData\Local\Programs\Python\Python310\lib\site-packages\django\apps\config.py", line 228, in create
import_module(entry)
File "C:\Users\kmrn_\AppData\Local\Programs\Python\Python310\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'rest_framework'
The text was updated successfully, but these errors were encountered: