2017-10-06 14:17:13 +02:00
|
|
|
from django.conf.urls import url, include
|
|
|
|
from django.contrib import admin
|
|
|
|
|
2017-10-18 17:05:57 +02:00
|
|
|
from allauth_ens.views import capture_login, capture_logout
|
2017-10-06 14:17:13 +02:00
|
|
|
from wiki.urls import get_pattern as get_wiki_pattern
|
|
|
|
from django_nyt.urls import get_pattern as get_nyt_pattern
|
|
|
|
|
2017-10-18 17:05:57 +02:00
|
|
|
allauth_urls = [
|
|
|
|
# Catch login/logout views of admin site.
|
|
|
|
url(r'^_admin/login/$', capture_login),
|
|
|
|
url(r'^_admin/logout/$', capture_logout),
|
|
|
|
# Allauth urls.
|
|
|
|
url(r'^_profil/', include('allauth.urls')),
|
|
|
|
]
|
2017-10-06 14:17:13 +02:00
|
|
|
|
2017-10-18 17:05:57 +02:00
|
|
|
urlpatterns = allauth_urls + [
|
|
|
|
url(r'^_admin/', admin.site.urls),
|
2017-10-06 14:17:13 +02:00
|
|
|
url(r'^notifications/', get_nyt_pattern()),
|
|
|
|
url(r'', get_wiki_pattern()),
|
|
|
|
]
|
|
|
|
|
|
|
|
# TODO add MEDIA_ROOT
|