Quasiment fini le prototype
[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'),
d15017b2
CR
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'),
155a7c62
CR
17)
18
19if settings.DEBUG:
20 urlpatterns += patterns('',
21 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
22 {'document_root': settings.MEDIA_ROOT}),
23 )