list2form : gestion des erreurs et des petits fichiers (merci cgi.py…)
[progfou.git] / auf_zap / urls.py
CommitLineData
95710ba5
P
1from django.conf.urls.defaults import *
2from django.conf import settings
3
4from django.contrib import admin
5admin.autodiscover()
6
7urlpatterns = patterns('',
620c9d5d
P
8 (r'^$', 'django.views.generic.simple.redirect_to', {'url': '/sysadmin/'}),
9 (r'^sysadmin/', include('auf_zap.sysadmin.urls')),
95710ba5 10 (r'^formations/', include('auf_zap.formations.urls')),
620c9d5d
P
11 (r'^contacts/', include('auf_zap.contacts.urls')),
12 (r'^portail/', include('auf_zap.portail.urls')),
95710ba5 13 # Uncomment the next line to enable the admin:
620c9d5d 14 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
aadcde48
P
15 #(r'^admin/(.*)', admin.site.root),
16 (r'^admin/', include(admin.site.urls)), # Django 1.1
95710ba5
P
17 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
18 {'document_root': settings.MEDIA_ROOT}),
19)