summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorJohannes Raggam <raggam-nl@adm.at>2011-06-30 16:53:21 (GMT)
committerJohannes Raggam <raggam-nl@adm.at>2011-06-30 16:53:21 (GMT)
commit7246c57ddeaa21ed6db7fb91cb978c2e9755b993 (patch)
tree7b2502107e8de41024dd2d2f41fdfd6206c12e04 /program
parentda40bbffef77aaa7239d26dcff9f7972b8607e1a (diff)
link all resources from local instead of googleapi
Diffstat (limited to 'program')
-rw-r--r--program/urls.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/program/urls.py b/program/urls.py
index 2023148..0dfe60e 100644
--- a/program/urls.py
+++ b/program/urls.py
@@ -5,6 +5,10 @@ from django.views.generic.list_detail import object_detail, object_list
from models import Host, Show, TimeSlot
from views import current_show, day_schedule, recommendations, show_list, week_schedule
+import os
+PROGRAM_STATIC_DIR = os.path.join(os.path.dirname(__file__), '../site_media')
+import pdb;pdb.set_trace()
+
hosts_dict = {
'queryset': Host.objects.all(),
'template_object_name': 'host'
@@ -31,5 +35,6 @@ urlpatterns = patterns('',
url(r'^shows/?$', show_list),
url(r'^shows/(?P<slug>[\w-]+)/?$', object_detail, shows_dict, name='show-detail'),
url(r'^(?P<object_id>\d+)/?$', object_detail, timeslots_dict, name='timeslot-detail'),
- url(r'^week/?$', week_schedule)
+ url(r'^week/?$', week_schedule),
+ url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': PROGRAM_STATIC_DIR}),
)