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 - - - + + +