ferme #425, flux agregees d'actualites
[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
37c3ba94 4from savoirs.rss import FilActualite
5ecd5424 5
155a7c62
CR
6admin.autodiscover()
7
8handler500 # Pyflakes
9
37c3ba94 10site_feeds = {'actualites': FilActualite }
11
12
155a7c62
CR
13urlpatterns = patterns(
14 '',
6d885e0c 15 url(r'^admin_tools/', include('admin_tools.urls')),
16 (r'^admin/', include(admin.site.urls)),
2be148fe 17 (r'^admin/confirmation/(.*)', 'savoirs.admin_views.confirmation'),
e3c3296e 18 (r'^admin/assigner_pays', 'savoirs.admin_views.assigner_pays'),
19 (r'^admin/assigner_regions', 'savoirs.admin_views.assigner_regions'),
20 (r'^admin/assigner_thematiques', 'savoirs.admin_views.assigner_thematiques'),
21 (r'^admin/assigner_disciplines', 'savoirs.admin_views.assigner_disciplines'),
155a7c62 22 (r'^admin/(.*)', admin.site.root),
e3c3296e 23
5ecd5424
CR
24 (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'savoirs/login.html'}),
25 (r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'template_name': 'savoirs/logout.html'}),
f24e513e 26
d15017b2 27 (r'^$', 'savoirs.views.index'),
92c7413b
CR
28 (r'^conseils/$', 'savoirs.views.conseils'),
29 (r'^a-propos/$', 'savoirs.views.a_propos'),
30 (r'^informations/$', 'savoirs.views.informations'),
31 (r'^nous-contacter/$', 'savoirs.views.nous_contacter'),
32 (r'^recherche/$', 'savoirs.views.recherche'),
33 (r'^recherche/avancee/$', 'savoirs.views.avancee'),
34
35 (r'^evenements/creer/$', 'savoirs.views.evenement_ajout'),
36 (r'^evenements/moderer/$', 'savoirs.views.evenement_moderation'),
37 (r'^evenements/moderer/(.+)/accepter/$', 'savoirs.views.evenement_accepter'),
38 (r'^evenements/moderer/(.+)/refuser/$', 'savoirs.views.evenement_refuser'),
39 (r'^evenements/(.+)/$', 'savoirs.views.evenement'),
40
41 (r'^json/get/$', 'savoirs.views.json_get'),
42 (r'^json/set/$', 'savoirs.views.json_set'),
932eef9a 43
da091176 44 (r'^chercheurs/(?P<id>\d+)/$', 'chercheurs.views.retrieve'),
932eef9a 45 (r'^chercheurs/inscription/$', 'chercheurs.views.inscription'),
588d6b93 46 (r'^chercheurs/repertoire/$', 'chercheurs.views.repertoire'),
9af73c99 47 (r'^chercheurs/perso/$', 'chercheurs.views.perso'),
b3e1079e 48 (r'^chercheurs/edit/$', 'chercheurs.views.edit'),
9af73c99 49
bab65667
AJ
50 (r'^sites/$', 'sitotheque.views.index'),
51 (r'^sites/(?P<id>\d+)/$', 'sitotheque.views.retrieve'),
37c3ba94 52
53 (r'^rss/(.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict':site_feeds}),
54
155a7c62
CR
55)
56
57if settings.DEBUG:
58 urlpatterns += patterns('',
59 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
60 {'document_root': settings.MEDIA_ROOT}),
61 )