2016-09-28 20:36:48 +02:00
|
|
|
"""
|
2017-03-05 19:10:19 +01:00
|
|
|
GestionÉvenementiel URL configuration
|
2017-02-18 01:10:30 +01:00
|
|
|
"""
|
2017-02-21 21:01:05 +01:00
|
|
|
from django.conf import settings
|
2017-02-18 18:28:11 +01:00
|
|
|
from django.conf.urls import url, include
|
2016-09-28 20:36:48 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2018-08-02 17:55:27 +02:00
|
|
|
#from django_cas_ng import views as django_cas_views
|
|
|
|
from allauth_ens.views import capture_login, capture_logout
|
|
|
|
|
2018-08-04 05:38:03 +02:00
|
|
|
from shared.admin import admin_site
|
|
|
|
|
2018-08-02 17:55:27 +02:00
|
|
|
|
2016-09-28 20:36:48 +02:00
|
|
|
urlpatterns = [
|
2018-08-04 05:38:03 +02:00
|
|
|
url(r'^admin/login/$', capture_login),
|
|
|
|
url(r'^admin/logout/$', capture_logout),
|
2018-08-02 17:55:27 +02:00
|
|
|
url(r'^compte/', include('allauth.urls')),
|
2018-08-04 05:38:03 +02:00
|
|
|
# Admin
|
|
|
|
url(r'^admin/', admin_site.urls),
|
|
|
|
# Apps
|
2017-02-18 18:28:11 +01:00
|
|
|
url(r'^event/', include('event.urls')),
|
2017-02-21 16:56:34 +01:00
|
|
|
url(r'^user/', include('users.urls')),
|
2018-08-04 05:38:03 +02:00
|
|
|
# REST
|
2017-07-18 17:48:59 +02:00
|
|
|
url(r'^api/', include('api.urls')),
|
2018-08-04 05:38:03 +02:00
|
|
|
# Reste
|
2017-02-21 15:32:03 +01:00
|
|
|
url(r'^', include('shared.urls')),
|
2016-09-28 20:36:48 +02:00
|
|
|
]
|
2017-02-18 18:28:11 +01:00
|
|
|
|
2017-07-18 15:37:13 +02:00
|
|
|
if 'debug_toolbar' in settings.INSTALLED_APPS:
|
2017-02-18 18:28:11 +01:00
|
|
|
import debug_toolbar
|
|
|
|
urlpatterns += [
|
|
|
|
url(r'^__debug__/', include(debug_toolbar.urls)),
|
|
|
|
]
|