Skip to content

Commit

Permalink
Update urls.py to avoid namespace error (#156)
Browse files Browse the repository at this point in the history
Updating the simple/app/urls.py to avoid `django.core.exceptions.ImproperlyConfigured` error.
  • Loading branch information
pmarais authored and owais committed Apr 2, 2018
1 parent 710a408 commit a40ab87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/simple/app/urls.py
Expand Up @@ -16,10 +16,10 @@
from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import TemplateView


## For Django 2+ support
from django.urls import path

urlpatterns = [
url(r'^$', TemplateView.as_view(template_name='home.html'), name='home'),
url(r'^admin/', include(admin.site.urls)),
path('admin/', admin.site.urls), ## Django 2+ admin namespace
]

0 comments on commit a40ab87

Please sign in to comment.