Skip to content
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 #12

Open
ericwuu opened this issue Aug 18, 2021 · 8 comments
Open

ModuleNotFoundError #12

ericwuu opened this issue Aug 18, 2021 · 8 comments

Comments

@ericwuu
Copy link

ericwuu commented Aug 18, 2021

C:\Users\wue\Documents\GitHub\Django-To-Do-list-with-user-authentication>python manage.py
Traceback (most recent call last):
File "C:\Users\wue\Documents\GitHub\Django-To-Do-list-with-user-authentication\manage.py", line 10, in main
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'

@LexxLuey
Copy link

LexxLuey commented Dec 9, 2021

Did you pip install Django in your virtual environment?

@prathmesh-jagtap
Copy link

or you can create a fresh virtual environment?

@sabbanishailaja
Copy link

File "C:\Users\ssabbani\Todolist\myvenv\Lib\site-packages\django\apps\config.py", line 193, in create
import_module(entry)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1776.0_x64__qbz5n2kfra8p0\Lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'task'
iam getting this error

@prathmesh-jagtap
Copy link

have you import Task module correctly, just check that .

@sabbanishailaja
Copy link

where should i look in the urls.py?

@sabbanishailaja
Copy link

from django.contrib import admin
from .models import Task

admin.site.register(Task) did u mean this

@prathmesh-jagtap
Copy link

from django.contrib import admin from .models import Task

admin.site.register(Task) did u mean this

you have to mention this in admin.py file

@prathmesh-jagtap
Copy link

first of all, check the name is it a task or tasks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants