From 1606cf69d773e4584b1be9d487b0dee7db300bb0 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Tue, 19 Apr 2011 20:11:29 +0200 Subject: [PATCH] now using MEDIA_URL for static files. --- oliver_screen/main/urls.py | 1 - oliver_screen/main/views.py | 3 ++- oliver_screen/templates/public/index.html | 12 ++++++------ oliver_screen/templates/public/now_playing.html | 4 ++-- oliver_screen/tracks/admin.py | 2 +- oliver_screen/tracks/models.py | 2 -- oliver_screen/tracks/views.py | 4 +++- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/oliver_screen/main/urls.py b/oliver_screen/main/urls.py index de06094..6edcc26 100644 --- a/oliver_screen/main/urls.py +++ b/oliver_screen/main/urls.py @@ -1,6 +1,5 @@ from django.conf.urls.defaults import * urlpatterns = patterns('oliver_screen.main.views', - (r'^tracks', 'tracks'), (r'^$', 'index'), ) diff --git a/oliver_screen/main/views.py b/oliver_screen/main/views.py index 022ac2e..4e22491 100644 --- a/oliver_screen/main/views.py +++ b/oliver_screen/main/views.py @@ -1,6 +1,7 @@ from django.http import HttpResponse from django.shortcuts import render_to_response, get_object_or_404 +from django.template import RequestContext # My views def index(request): - return render_to_response('public/index.html') + return render_to_response('public/index.html', context_instance=RequestContext(request)) diff --git a/oliver_screen/templates/public/index.html b/oliver_screen/templates/public/index.html index 96444cf..45cb973 100644 --- a/oliver_screen/templates/public/index.html +++ b/oliver_screen/templates/public/index.html @@ -3,18 +3,18 @@ Current track - - - + + +