ferme #459, moderation en lots (Valider et invalider)
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / urls.py
1 from django.conf.urls.defaults import patterns, include, handler500, url
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 url(r'^admin_tools/', include('admin_tools.urls')),
12 (r'^admin/', include(admin.site.urls)),
13 (r'^admin/confirmation/(.*)', 'savoirs.admin_views.confirmation'),
14 (r'^admin/assigner_pays', 'savoirs.admin_views.assigner_pays'),
15 (r'^admin/assigner_regions', 'savoirs.admin_views.assigner_regions'),
16 (r'^admin/assigner_thematiques', 'savoirs.admin_views.assigner_thematiques'),
17 (r'^admin/assigner_disciplines', 'savoirs.admin_views.assigner_disciplines'),
18 (r'^admin/(.*)', admin.site.root),
19
20 (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'savoirs/login.html'}),
21 (r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'template_name': 'savoirs/logout.html'}),
22
23 (r'^$', 'savoirs.views.index'),
24 (r'^conseils/$', 'savoirs.views.conseils'),
25 (r'^a-propos/$', 'savoirs.views.a_propos'),
26 (r'^informations/$', 'savoirs.views.informations'),
27 (r'^nous-contacter/$', 'savoirs.views.nous_contacter'),
28 (r'^recherche/$', 'savoirs.views.recherche'),
29 (r'^recherche/avancee/$', 'savoirs.views.avancee'),
30
31 (r'^evenements/creer/$', 'savoirs.views.evenement_ajout'),
32 (r'^evenements/moderer/$', 'savoirs.views.evenement_moderation'),
33 (r'^evenements/moderer/(.+)/accepter/$', 'savoirs.views.evenement_accepter'),
34 (r'^evenements/moderer/(.+)/refuser/$', 'savoirs.views.evenement_refuser'),
35 (r'^evenements/(.+)/$', 'savoirs.views.evenement'),
36
37 (r'^json/get/$', 'savoirs.views.json_get'),
38 (r'^json/set/$', 'savoirs.views.json_set'),
39
40 (r'^chercheurs/(?P<id>\d+)/$', 'chercheurs.views.retrieve'),
41 (r'^chercheurs/inscription/$', 'chercheurs.views.inscription'),
42 (r'^chercheurs/repertoire/$', 'chercheurs.views.repertoire'),
43 (r'^chercheurs/perso/$', 'chercheurs.views.perso'),
44 (r'^chercheurs/edit/$', 'chercheurs.views.edit'),
45
46 (r'^sites/$', 'sitotheque.views.index'),
47 (r'^sites/(?P<id>\d+)/$', 'sitotheque.views.retrieve'),
48 )
49
50 if settings.DEBUG:
51 urlpatterns += patterns('',
52 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
53 {'document_root': settings.MEDIA_ROOT}),
54 )