Commit de trucs qui traînent, pour pouvoir avancer !
[progfou.git] / auf_zap / 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 (r'^$', 'django.views.generic.simple.redirect_to', {'url': '/sysadmin/'}),
9 (r'^sysadmin/', include('auf_zap.sysadmin.urls')),
10 (r'^formations/', include('auf_zap.formations.urls')),
11 (r'^contacts/', include('auf_zap.contacts.urls')),
12 (r'^portail/', include('auf_zap.portail.urls')),
13 # Uncomment the next line to enable the admin:
14 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
15 (r'^admin/(.*)', admin.site.root),
16 #(r'^admin/', include(admin.site.urls)), # Django 1.1
17 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
18 {'document_root': settings.MEDIA_ROOT}),
19 )