I was working with Django in urls.py I added a new path that would relate the urls.py in the app to the main urls.py. when I was about to run the server this error occurred and I don't know what is the problem ModuleNotFoundError: No module named 'django.ulrs' and I am pretty sure that Django has a module name django.urls
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('ticketing/', include('Ticketing.urls')) ]
CodePudding user response:
try to remove include
, because with include
you will read in another urls.py
CodePudding user response:
Make sure, you've registered your app in the 'settings.py' And you've 'urls.py' file in the app.