wiki-eleves/WikiENS/urls.py

23 lines
656 B
Python
Raw Normal View History

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