Source

django-swingcms / swingcms / cms / url_lock.py

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from django.conf.urls.defaults import *

import settings



# replace root
urlpatterns = patterns('',
    (r"^.+$", 'cms.views.manutention'),
)

# serve files from django server
if settings.SERVED:
    urlpatterns += patterns('',
        (r"^static/(?P<path>.*)$", 'django.views.static.serve', {'document_root':settings.MEDIA_ROOT}),
    )