Ajout formulaire, liens pour login
[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'),
18 (r'^nous-contacter$', 'savoirs.views.nous_contacter'),
19 (r'^recherche$', 'savoirs.views.recherche'),
5ecd5424
CR
20 (r'^json/get$', 'savoirs.views.json_get'),
21 (r'^json/set$', 'savoirs.views.json_set'),
155a7c62
CR
22)
23
24if settings.DEBUG:
25 urlpatterns += patterns('',
26 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
27 {'document_root': settings.MEDIA_ROOT}),
28 )