Première version : mise en route du suivi.
[auf_savoirs_en_partage_django.git] / auf_savoirs_django / urls.py
1
2 from django.conf.urls.defaults import patterns, include, handler500
3 from django.conf import settings
4 from django.contrib import admin
5 admin.autodiscover()
6
7 handler500 # Pyflakes
8
9 urlpatterns = patterns(
10 '',
11 (r'^admin/(.*)', admin.site.root),
12 (r'^accounts/login/$', 'django.contrib.auth.views.login'),
13 )
14
15 if settings.DEBUG:
16 urlpatterns += patterns('',
17 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
18 {'document_root': settings.MEDIA_ROOT}),
19 )