kickoff sites
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / urls.py
CommitLineData
155a7c62
CR
1from django.conf.urls.defaults import patterns, include, handler500
2from django.conf import settings
3from django.contrib import admin
5ecd5424 4
155a7c62
CR
5admin.autodiscover()
6
7handler500 # Pyflakes
8
9urlpatterns = patterns(
10 '',
11 (r'^admin/(.*)', admin.site.root),
5ecd5424
CR
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'}),
f24e513e 14
d15017b2 15 (r'^$', 'savoirs.views.index'),
92c7413b
CR
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'),
932eef9a 31
da091176 32 (r'^chercheurs/(?P<id>\d+)/$', 'chercheurs.views.retrieve'),
932eef9a 33 (r'^chercheurs/inscription/$', 'chercheurs.views.inscription'),
588d6b93 34 (r'^chercheurs/repertoire/$', 'chercheurs.views.repertoire'),
35 (r'^espace/chercheur/(?P<id>\d+)/$', 'chercheurs.views.perso'),
01a9197e 36
37 (r'^sites/$', 'sites.views.index'),
155a7c62
CR
38)
39
40if settings.DEBUG:
41 urlpatterns += patterns('',
42 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
43 {'document_root': settings.MEDIA_ROOT}),
44 )