urls.py 294 Bytes
Newer Older
Jon Yu's avatar
Jon Yu committed
1
from django.conf.urls import url
2
3
from django.urls import include, path

4
from oidc_auth.auth import using_oidc_auth
Jon Yu's avatar
Jon Yu committed
5
6
7
8

urlpatterns = [
    url(r'^oidc/', include('mozilla_django_oidc.urls')),
]
9

Jon Yu's avatar
Jon Yu committed
10
if not using_oidc_auth():
11
    urlpatterns += [path('accounts/', include('django.contrib.auth.urls'))]