url not defined
NicoCaldo opened this issue · comments
Nicola commented
I'm having issue with
urlpatterns = [
url(r'^webpush/', include('webpush.urls'))
]
I've got an error name url is not defined
I can make it work using re_path
like
urlpatterns = [
re_path(r'^webpush/', include('webpush.urls'))
]
Sasikumar .M commented
Did you try importing urls
from django.conf.urls import url, include
Nicola commented
Did you try importing urls from django.conf.urls import url, include
django.conf.urls.url()
was deprecated in Django 3.0, and is removed in Django 4.0+.