Skip to content

Commit

Permalink
Only include shibboleth urls if app installed
Browse files Browse the repository at this point in the history
  • Loading branch information
helenst authored and sevein committed Aug 1, 2017
1 parent 86e279a commit 4e06f25
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion storage_service/storage_service/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
import django.contrib.auth.views
Expand Down Expand Up @@ -29,10 +30,15 @@
url(r'^i18n/', include('django.conf.urls.i18n', namespace='i18n')),

url(r'^logged-out/', TemplateView.as_view(template_name='logged_out.html')),
url(r'^shib/', include('shibboleth.urls', namespace='shibboleth')),
]


if 'shibboleth' in settings.INSTALLED_APPS:
urlpatterns += [
url(r'^shib/', include('shibboleth.urls', namespace='shibboleth')),
]


def startup():
import django.core.exceptions
import errno
Expand Down

0 comments on commit 4e06f25

Please sign in to comment.