13343c6d4d
- Allows login via clipper. - Default login method (django one) is still available. - allauth allows user to change and reset his/her password, mails, social accounts (clipper). - Signup is managed through allauth.
22 lines
651 B
Python
22 lines
651 B
Python
from django.conf.urls import url, include
|
|
from django.contrib import admin
|
|
|
|
from allauth_ens.views import capture_login, capture_logout
|
|
from wiki.urls import get_pattern as get_wiki_pattern
|
|
from django_nyt.urls import get_pattern as get_nyt_pattern
|
|
|
|
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')),
|
|
]
|
|
|
|
urlpatterns = allauth_urls + [
|
|
url(r'^_admin/', admin.site.urls),
|
|
url(r'^notifications/', get_nyt_pattern()),
|
|
url(r'', get_wiki_pattern()),
|
|
]
|
|
|
|
# TODO add MEDIA_ROOT
|