-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django 2 error: Specifying a namespace in include() without providing an app_name #20
Comments
with which value? |
Use app_name='nameapp' |
Can you provide a code example? Because as I'm typing app_name="sth" in urls.py it doesn't work. |
Let's say in your main Then, in your
If you don't have access to the |
Or you can also use it this way:
|
Excelent ¡¡¡ |
as indicated by @DonExo path('', include(('blog.urls', 'blog'), namespace='blog')) |
When using this library with Django 2 like:
Fails with:
To make this work we need to add the variable
app_name
todeux/urls.py
deux/oauth2/urls.py
deux/authtoken/urls.py
The text was updated successfully, but these errors were encountered: