Source

christchurch_django / christchurch / urls.py

Full commit
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from django.conf import settings

admin.autodiscover()

urlpatterns = patterns('',
                       url(r'^thissunday/$', 'christchurch.views.this_sunday'),
                       url(r'^upcoming-midweek/$', 'christchurch.views.upcoming_midweek'),
                       url(r'^admin/', include(admin.site.urls)),
                       url(r'^', include('cms.urls')),
                       # Sermons views included via apphooks
)

if settings.DEVBOX:
    from django.contrib.staticfiles.urls import staticfiles_urlpatterns
    # appmedia
    urlpatterns += patterns('',
                           (r'^' + settings.MEDIA_URL.lstrip('/'), include('appmedia.urls')),
    )

    # staticfiles and usermedia

    urlpatterns += patterns('',
                            (r'^usermedia/(?P<path>.*)$', 'django.views.static.serve',
                             {'document_root': settings.MEDIA_ROOT}),
    )

    urlpatterns += staticfiles_urlpatterns()