summaryrefslogtreecommitdiffstats
path: root/spejstore/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'spejstore/urls.py')
-rw-r--r--spejstore/urls.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/spejstore/urls.py b/spejstore/urls.py
index 9cb95f3..ccf0b8d 100644
--- a/spejstore/urls.py
+++ b/spejstore/urls.py
@@ -21,8 +21,9 @@ router.register(r'labels', apiviews.LabelViewSet)
# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
-urlpatterns = [
+urlpatterns = ([
url(r'^admin/login/.*', auth_redirect),
+] if settings.PROD else []) + [
url(r'^admin/', admin.site.urls),
url(r'^select2/', include('django_select2.urls')),