virtualenv --system-site-packages
[davin.git] / ateliers / django / carto_1_1 / urls.py
1 from django.conf.urls.defaults import *
2 from django.conf import settings
3
4 from django.contrib import admin
5 admin.autodiscover()
6
7 urlpatterns = patterns('',
8 # carto
9 url(r'^$', 'carto_1_1.views.home', name='home'),
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'),
16 (r'^admin/', include(admin.site.urls)),
17
18 # annuaire
19 (r'^', include('carto_1_1.annuaire.urls')),
20 )
21
22 if settings.DEBUG:
23 urlpatterns += patterns('',
24 (r'^static/(?P<path>.*)$', 'django.views.static.serve',
25 {'document_root': settings.MEDIA_ROOT}),
26 )