Correction de texte
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage_django / urls.py
CommitLineData
155a7c62
CR
1from django.conf.urls.defaults import patterns, include, handler500
2from django.conf import settings
3from django.contrib import admin
5ecd5424 4
155a7c62
CR
5admin.autodiscover()
6
7handler500 # Pyflakes
8
9urlpatterns = patterns(
10 '',
11 (r'^admin/(.*)', admin.site.root),
5ecd5424
CR
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'}),
f24e513e 14
d15017b2
CR
15 (r'^$', 'savoirs.views.index'),
16 (r'^conseils$', 'savoirs.views.conseils'),
17 (r'^a-propos$', 'savoirs.views.a_propos'),
2d10d74b 18 (r'^informations$', 'savoirs.views.informations'),
d15017b2
CR
19 (r'^nous-contacter$', 'savoirs.views.nous_contacter'),
20 (r'^recherche$', 'savoirs.views.recherche'),
a008c7e5 21 (r'^recherche/avancee$', 'savoirs.views.avancee'),
5ecd5424
CR
22 (r'^json/get$', 'savoirs.views.json_get'),
23 (r'^json/set$', 'savoirs.views.json_set'),
155a7c62
CR
24)
25
26if settings.DEBUG:
27 urlpatterns += patterns('',
28 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
29 {'document_root': settings.MEDIA_ROOT}),
30 )