ferme #460 ajout du dashboard pour connaitre les references à traiter
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / urls.py
CommitLineData
6d885e0c 1from django.conf.urls.defaults import patterns, include, handler500, url
155a7c62
CR
2from django.conf import settings
3from django.contrib import admin
5ecd5424 4
155a7c62
CR
5admin.autodiscover()
6
7handler500 # Pyflakes
8
9urlpatterns = patterns(
10 '',
6d885e0c 11 url(r'^admin_tools/', include('admin_tools.urls')),
12 (r'^admin/', include(admin.site.urls)),
e3c3296e 13 (r'^admin/assigner_pays', 'savoirs.admin_views.assigner_pays'),
14 (r'^admin/assigner_regions', 'savoirs.admin_views.assigner_regions'),
15 (r'^admin/assigner_thematiques', 'savoirs.admin_views.assigner_thematiques'),
16 (r'^admin/assigner_disciplines', 'savoirs.admin_views.assigner_disciplines'),
155a7c62 17 (r'^admin/(.*)', admin.site.root),
e3c3296e 18
5ecd5424
CR
19 (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'savoirs/login.html'}),
20 (r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'template_name': 'savoirs/logout.html'}),
f24e513e 21
d15017b2 22 (r'^$', 'savoirs.views.index'),
92c7413b
CR
23 (r'^conseils/$', 'savoirs.views.conseils'),
24 (r'^a-propos/$', 'savoirs.views.a_propos'),
25 (r'^informations/$', 'savoirs.views.informations'),
26 (r'^nous-contacter/$', 'savoirs.views.nous_contacter'),
27 (r'^recherche/$', 'savoirs.views.recherche'),
28 (r'^recherche/avancee/$', 'savoirs.views.avancee'),
29
30 (r'^evenements/creer/$', 'savoirs.views.evenement_ajout'),
31 (r'^evenements/moderer/$', 'savoirs.views.evenement_moderation'),
32 (r'^evenements/moderer/(.+)/accepter/$', 'savoirs.views.evenement_accepter'),
33 (r'^evenements/moderer/(.+)/refuser/$', 'savoirs.views.evenement_refuser'),
34 (r'^evenements/(.+)/$', 'savoirs.views.evenement'),
35
36 (r'^json/get/$', 'savoirs.views.json_get'),
37 (r'^json/set/$', 'savoirs.views.json_set'),
932eef9a 38
da091176 39 (r'^chercheurs/(?P<id>\d+)/$', 'chercheurs.views.retrieve'),
932eef9a 40 (r'^chercheurs/inscription/$', 'chercheurs.views.inscription'),
588d6b93 41 (r'^chercheurs/repertoire/$', 'chercheurs.views.repertoire'),
9af73c99 42 (r'^chercheurs/perso/$', 'chercheurs.views.perso'),
b3e1079e 43 (r'^chercheurs/edit/$', 'chercheurs.views.edit'),
9af73c99 44
bab65667
AJ
45 (r'^sites/$', 'sitotheque.views.index'),
46 (r'^sites/(?P<id>\d+)/$', 'sitotheque.views.retrieve'),
155a7c62
CR
47)
48
49if settings.DEBUG:
50 urlpatterns += patterns('',
51 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
52 {'document_root': settings.MEDIA_ROOT}),
53 )