Merge branch 'master' of gitosis@git.auf:auf_savoirs_en_partage_django
[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/assigner_pays', 'savoirs.admin_views.assigner_pays'),
12 (r'^admin/assigner_regions', 'savoirs.admin_views.assigner_regions'),
13 (r'^admin/assigner_thematiques', 'savoirs.admin_views.assigner_thematiques'),
14 (r'^admin/assigner_disciplines', 'savoirs.admin_views.assigner_disciplines'),
15 (r'^admin/(.*)', admin.site.root),
16
17 (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'savoirs/login.html'}),
18 (r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'template_name': 'savoirs/logout.html'}),
19
20 (r'^$', 'savoirs.views.index'),
21 (r'^conseils/$', 'savoirs.views.conseils'),
22 (r'^a-propos/$', 'savoirs.views.a_propos'),
23 (r'^informations/$', 'savoirs.views.informations'),
24 (r'^nous-contacter/$', 'savoirs.views.nous_contacter'),
25 (r'^recherche/$', 'savoirs.views.recherche'),
26 (r'^recherche/avancee/$', 'savoirs.views.avancee'),
27
28 (r'^evenements/creer/$', 'savoirs.views.evenement_ajout'),
29 (r'^evenements/moderer/$', 'savoirs.views.evenement_moderation'),
30 (r'^evenements/moderer/(.+)/accepter/$', 'savoirs.views.evenement_accepter'),
31 (r'^evenements/moderer/(.+)/refuser/$', 'savoirs.views.evenement_refuser'),
32 (r'^evenements/(.+)/$', 'savoirs.views.evenement'),
33
34 (r'^json/get/$', 'savoirs.views.json_get'),
35 (r'^json/set/$', 'savoirs.views.json_set'),
36
37 (r'^chercheurs/(?P<id>\d+)/$', 'chercheurs.views.retrieve'),
38 (r'^chercheurs/inscription/$', 'chercheurs.views.inscription'),
39 (r'^chercheurs/repertoire/$', 'chercheurs.views.repertoire'),
40 (r'^chercheurs/perso/$', 'chercheurs.views.perso'),
41
42 (r'^sites/$', 'sitotheque.views.index'),
43 (r'^sites/(?P<id>\d+)/$', 'sitotheque.views.retrieve'),
44 )
45
46 if settings.DEBUG:
47 urlpatterns += patterns('',
48 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
49 {'document_root': settings.MEDIA_ROOT}),
50 )