virtualenv --system-site-packages
[davin.git] / ateliers / django / carto_1_1 / urls.py
CommitLineData
98d527aa 1from django.conf.urls.defaults import *
0f355ca9 2from django.conf import settings
98d527aa 3
5f47dab0
DB
4from django.contrib import admin
5admin.autodiscover()
98d527aa
DB
6
7urlpatterns = patterns('',
0f355ca9 8 # carto
c35b1af9 9 url(r'^$', 'carto_1_1.views.home', name='home'),
0f355ca9
DB
10 url(r'^connexion/$', 'django.contrib.auth.views.login', dict(
11 template_name='connexion.html',
12 ), 'connexion'),
13 url(r'^deconnexion/$', 'django.contrib.auth.views.logout', dict(
14 template_name='deconnexion.html',
15 ), 'deconnexion'),
5f47dab0 16 (r'^admin/', include(admin.site.urls)),
0f355ca9
DB
17
18 # annuaire
19 (r'^', include('carto_1_1.annuaire.urls')),
98d527aa 20)
0f355ca9
DB
21
22if settings.DEBUG:
23 urlpatterns += patterns('',
24 (r'^static/(?P<path>.*)$', 'django.views.static.serve',
25 {'document_root': settings.MEDIA_ROOT}),
26 )