c30cee73495a8e51afb6413f907ce1346a6c3e00
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / urls.py
1 from django.conf.urls.defaults import patterns, include, handler500
2 from django.conf import settings
3 from django.contrib import admin
4
5 admin.autodiscover()
6
7 handler500 # Pyflakes
8
9 urlpatterns = patterns(
10 '',
11 (r'^admin/(.*)', admin.site.root),
12 (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'savoirs/login.html'}),
13 (r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'template_name': 'savoirs/logout.html'}),
14
15 (r'^$', 'savoirs.views.index'),
16 (r'^conseils/$', 'savoirs.views.conseils'),
17 (r'^a-propos/$', 'savoirs.views.a_propos'),
18 (r'^informations/$', 'savoirs.views.informations'),
19 (r'^nous-contacter/$', 'savoirs.views.nous_contacter'),
20 (r'^recherche/$', 'savoirs.views.recherche'),
21 (r'^recherche/avancee/$', 'savoirs.views.avancee'),
22
23 (r'^evenements/creer/$', 'savoirs.views.evenement_ajout'),
24 (r'^evenements/moderer/$', 'savoirs.views.evenement_moderation'),
25 (r'^evenements/moderer/(.+)/accepter/$', 'savoirs.views.evenement_accepter'),
26 (r'^evenements/moderer/(.+)/refuser/$', 'savoirs.views.evenement_refuser'),
27 (r'^evenements/(.+)/$', 'savoirs.views.evenement'),
28
29 (r'^json/get/$', 'savoirs.views.json_get'),
30 (r'^json/set/$', 'savoirs.views.json_set'),
31
32 (r'^chercheurs/inscription/$', 'chercheurs.views.inscription'),
33 (r'^chercheurs/repertoire/$', 'chercheurs.views.repertoire'),
34 (r'^espace/chercheur/(?P<id>\d+)/$', 'chercheurs.views.perso'),
35 )
36
37 if settings.DEBUG:
38 urlpatterns += patterns('',
39 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
40 {'document_root': settings.MEDIA_ROOT}),
41 )