django-jet
django-jet copied to clipboard
NameError: name 'url' is not defined
settings.py is below
my urls.py file
Add from django.conf.urls import url
to your urls.py
file and please add code as actual code next time, screenshots are so annoying, unreproducible and might die on the hosting site making this issue useless.
For me not working, drops the following error:
NameError: name 'include' is not defined
My urls.py:
`from django.contrib import admin from django.urls import path from django.conf.urls import url
urlpatterns = [ '', url(r'^jet/', include('jet.urls', 'jet')), # Django JET URLS url(r'^admin/', include(admin.site.urls)), ]`
To use 'include' you need import it.
Like this:
from django.urls import path, include
i have already imported 'include' but i still have the name Error