Ajout de la liste des sources, closes #187
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage_django / 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/(.*)', admin.site.root),
12 (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'savoirs/login.html'}),
13 (r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'template_name': 'savoirs/logout.html'}),
14
15 (r'^$', 'savoirs.views.index'),
16 (r'^conseils$', 'savoirs.views.conseils'),
17 (r'^a-propos$', 'savoirs.views.a_propos'),
18 (r'^informations$', 'savoirs.views.informations'),
19 (r'^nous-contacter$', 'savoirs.views.nous_contacter'),
20 (r'^recherche$', 'savoirs.views.recherche'),
21 (r'^recherche/avancee$', 'savoirs.views.avancee'),
22 (r'^json/get$', 'savoirs.views.json_get'),
23 (r'^json/set$', 'savoirs.views.json_set'),
24 )
25
26 if settings.DEBUG:
27 urlpatterns += patterns('',
28 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
29 {'document_root': settings.MEDIA_ROOT}),
30 )