boostrap
[ifgu.git] / project / urls.py
1 # -*- encoding: utf-8 -*
2
3 from django.conf.urls.defaults import patterns, include, \
4 handler500, handler404, url
5 from django.conf import settings
6 from django.contrib import admin
7 from django.contrib.staticfiles.urls import staticfiles_urlpatterns
8
9 admin.autodiscover()
10
11 handler404
12 handler500 # Pyflakes
13
14 urlpatterns = patterns(
15 '',
16 # admin
17 url(r'^admin_tools/', include('admin_tools.urls')),
18 (r'^admin/', include(admin.site.urls)),
19 )
20
21 if settings.DEBUG:
22 urlpatterns += staticfiles_urlpatterns()
23 urlpatterns += patterns('',
24 url(r'^media/(?P<path>.*)$',
25 'django.views.static.serve', {
26 'document_root': settings.MEDIA_ROOT, }),
27 )