django-cms
[ifgu.git] / project / urls.py
CommitLineData
7751bc47
OL
1# -*- encoding: utf-8 -*
2
3from django.conf.urls.defaults import patterns, include, \
4 handler500, handler404, url
5from django.conf import settings
6from django.contrib import admin
7from django.contrib.staticfiles.urls import staticfiles_urlpatterns
8
9admin.autodiscover()
10
11handler404
12handler500 # Pyflakes
13
14urlpatterns = patterns(
15 '',
16 # admin
17 url(r'^admin_tools/', include('admin_tools.urls')),
18 (r'^admin/', include(admin.site.urls)),
19)
20
21if 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 )
f73b7c99
OL
28
29# django-cms
30urlpatterns += patterns('',
31 url(r'^', include('cms.urls')),
32 )