summaryrefslogtreecommitdiff
path: root/helsinki/program/urls.py
blob: 341923ba726c61e60431e3f74001cb3771472646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib import admin

import os

admin.autodiscover()

urlpatterns = patterns('',
        (r'^admin/', include(admin.site.urls)),
    (r'^program', include('helsinki.program.urls_program')),
)
if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^site_media/(?P<path>.*)$',
         'django.views.static.serve',
         {'document_root': os.path.join(os.path.dirname(__file__), 'site_media')}
        ),
    )