ferme #338, cablage des actualite a la source + admin & refactoring model
[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)),
2be148fe 13 (r'^admin/confirmation/(.*)', 'savoirs.admin_views.confirmation'),
e3c3296e 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'),
155a7c62 18 (r'^admin/(.*)', admin.site.root),
e3c3296e 19
5ecd5424
CR
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'}),
f24e513e 22
d15017b2 23 (r'^$', 'savoirs.views.index'),
92c7413b
CR
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'),
932eef9a 39
da091176 40 (r'^chercheurs/(?P<id>\d+)/$', 'chercheurs.views.retrieve'),
932eef9a 41 (r'^chercheurs/inscription/$', 'chercheurs.views.inscription'),
588d6b93 42 (r'^chercheurs/repertoire/$', 'chercheurs.views.repertoire'),
9af73c99 43 (r'^chercheurs/perso/$', 'chercheurs.views.perso'),
b3e1079e 44 (r'^chercheurs/edit/$', 'chercheurs.views.edit'),
9af73c99 45
bab65667
AJ
46 (r'^sites/$', 'sitotheque.views.index'),
47 (r'^sites/(?P<id>\d+)/$', 'sitotheque.views.retrieve'),
155a7c62
CR
48)
49
50if settings.DEBUG:
51 urlpatterns += patterns('',
52 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
53 {'document_root': settings.MEDIA_ROOT}),
54 )