activé l'app budget
[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
5e23d90d
OL
5
6admin.autodiscover()
7
8handler500 # Pyflakes
9
10urlpatterns = patterns(
11 '',
fd5f1d55 12 (r'^$', 'project.views.index'),
5e23d90d
OL
13 url(r'^admin_tools/', include('admin_tools.urls')),
14 (r'^admin/', include(admin.site.urls)),
15 (r'^connexion/$', 'django.contrib.auth.views.login'),
16 (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
498881f4 17 (r'^dae/', include('project.dae.urls')),
ae936f8d 18 (r'^', include('project.rh.urls')),
5e23d90d
OL
19)
20
21if settings.DEBUG:
22 urlpatterns += patterns('',
23 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
24 {'document_root': settings.MEDIA_ROOT}),
25 )