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