Corrections pour backend 0.2
[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
4admin.autodiscover()
5
6handler500 # Pyflakes
7
8urlpatterns = patterns(
9 '',
10 (r'^admin/(.*)', admin.site.root),
11 (r'^accounts/login/$', 'django.contrib.auth.views.login'),
f24e513e 12
d15017b2
CR
13 (r'^$', 'savoirs.views.index'),
14 (r'^conseils$', 'savoirs.views.conseils'),
15 (r'^a-propos$', 'savoirs.views.a_propos'),
16 (r'^nous-contacter$', 'savoirs.views.nous_contacter'),
17 (r'^recherche$', 'savoirs.views.recherche'),
155a7c62
CR
18)
19
20if settings.DEBUG:
21 urlpatterns += patterns('',
22 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
23 {'document_root': settings.MEDIA_ROOT}),
24 )