Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 523 Bytes
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
urlpatterns = patterns('',
(r'^admin/', include(,
url(r'^', include('cms.urls')),
print settings.STATIC_ROOT
if settings.DEBUG:
urlpatterns = patterns('',
url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
url(r'', include('django.contrib.staticfiles.urls')),
) + urlpatterns
Jump to Line
Something went wrong with that request. Please try again.