You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from django.urls import url, include
urlpatterns = [
...
url('', include('pwa.urls')), # You MUST use an empty string as the URL prefix
...
]
But I don't know if I'm doing something wrong (I'm don't know python perfectly) but including your snipper (aka the url inside urlpatterns in the main app/urls.py) gave me this error:
ImportError: cannot import name 'url' from 'django.urls'
Because I usually include a "path" and not an "url" inside "urlpatterns" list, and I saw that in your demo you done the same, I've changed it in a more familiar:
urlpatterns = [
...
path('', include('pwa.urls')), # You MUST use an empty string as the URL prefix
...
]
And is working.
Is the readme.md wrong or there's something I didn't get in django, python or django-pwa?
The text was updated successfully, but these errors were encountered:
Hi!
Before all: thanks for doing everything! 😄
I'm trying to install the package on my website, and I'm following the readme.md
On THIS part of the readme, you are doing:
But I don't know if I'm doing something wrong (I'm don't know python perfectly) but including your snipper (aka the url inside urlpatterns in the main app/urls.py) gave me this error:
ImportError: cannot import name 'url' from 'django.urls'
Because I usually include a "path" and not an "url" inside "urlpatterns" list, and I saw that in your demo you done the same, I've changed it in a more familiar:
And is working.
Is the readme.md wrong or there's something I didn't get in django, python or django-pwa?
The text was updated successfully, but these errors were encountered: