gestioCOF/urls.py
2012-07-11 17:39:20 +02:00

24 lines
1.2 KiB
Python

from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'gestioncof.views.home', name='home'),
url(r'^cas/login$', 'django_cas.views.login'),
url(r'^cas/logout$', 'django_cas.views.logout'),
url(r'^outsider/login$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}),
url(r'^outsider/logout$', 'django.contrib.auth.views.logout', {'next_page': '/gestion/'}),
url(r'^login$', 'gestioncof.views.login'),
url(r'^logout$', 'gestioncof.views.logout'),
url(r'^profile$', 'gestioncof.views.profile'),
url(r'^registration$', 'gestioncof.views.registration'),
url(r'^bda/inscription$', 'bda.views.inscription'),
url(r'^survey/(?P<survey_id>\d+)$', 'gestioncof.views.survey'),
url(r'^event/(?P<event_id>\d+)$', 'gestioncof.views.event'),
url(r'^survey/(?P<survey_id>\d+)/status$', 'gestioncof.views.survey_status'),
url(r'^event/(?P<event_id>\d+)/status$', 'gestioncof.views.event_status'),
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^grappelli/', include('grappelli.urls')),
)