Open ericwuu opened 3 years ago
Did you pip install Django in your virtual environment?
or you can create a fresh virtual environment?
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 "
have you import Task module correctly, just check that .
where should i look in the urls.py?
from django.contrib import admin from .models import Task
admin.site.register(Task) did u mean this
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
first of all, check the name is it a task or tasks?
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'