divanov11 / Django-To-Do-list-with-user-authentication

To Do list app with User Registration, Login, Search and full Create Read Update and DELETE functionality.
210 stars 115 forks source link

ModuleNotFoundError #12

Open ericwuu opened 3 years ago

ericwuu commented 3 years ago

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 commented 2 years ago

Did you pip install Django in your virtual environment?

prathmesh-jagtap commented 1 year ago

or you can create a fresh virtual environment?

sabbanishailaja commented 11 months ago

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_x64qbz5n2kfra8p0\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 commented 11 months ago

have you import Task module correctly, just check that .

sabbanishailaja commented 11 months ago

where should i look in the urls.py?

sabbanishailaja commented 11 months ago

from django.contrib import admin from .models import Task

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

prathmesh-jagtap commented 11 months ago

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 commented 11 months ago

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