Premier jet pour le formulaire de poste (manque le financement)
[auf_rh_dae.git] / project / urls.py
1 # -*- encoding: utf-8 -*
2 from django.conf.urls.defaults import patterns, include, handler500, url
3 from django.conf import settings
4 from django.contrib import admin
5 from auf.django.skin.urls import auf_media_patterns
6
7 admin.autodiscover()
8
9 handler500 # Pyflakes
10
11 urlpatterns = patterns(
12 '',
13 url(r'^admin_tools/', include('admin_tools.urls')),
14 (r'^admin/', include(admin.site.urls)),
15 (r'^dae/', include('project.dae.urls')),
16 (r'^connexion/$', 'django.contrib.auth.views.login'),
17 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
18
19 )
20
21 if settings.DEBUG:
22 urlpatterns += patterns('',
23 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
24 {'document_root': settings.MEDIA_ROOT}),
25 )
26 urlpatterns += auf_media_patterns