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