django-jet icon indicating copy to clipboard operation
django-jet copied to clipboard

NameError: name 'url' is not defined

Open seenu4linux opened this issue 6 years ago • 4 comments

settings.py is below settins file my urls.py file urls file

seenu4linux avatar Nov 27 '18 05:11 seenu4linux

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.

josefkorbel avatar Nov 30 '18 10:11 josefkorbel

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)), ]`

c001os avatar Dec 07 '18 21:12 c001os

To use 'include' you need import it.

Like this:

from django.urls import path, include

massilva avatar Dec 17 '18 01:12 massilva

i have already imported 'include' but i still have the name Error

FelicianoManguele avatar Aug 12 '21 13:08 FelicianoManguele