Django 2.0 Url.py Include Namespace="xyz"
I've a problem with the routing django.conf.urls include() - main project folder - urls.py Line 22 of urls.py (pip freeze and urls.py - see below) throws the error in the console:
Solution 1:
Just in case you have updated from an older version of Django it would be advisable if you go to the specific app urls.py
file and add the following line just above the url patterns;
app_name = 'current_app_name'
Below is an example of how it will look like;
app_name = 'current_app_name'
urlpatterns = [
url(r'^$', views.index, name='index'),
]
Post a Comment for "Django 2.0 Url.py Include Namespace="xyz""