]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/content/views.py
Update to use a context processor for the MEDIA_URL rather than having to pass it...
[sommitrealweird.git] / sommitrealweird / content / views.py
index e4b49da50eee581157666c792e724b20e7dd5f33..423e44fa51ed1b0f7b21477a1b56aef9d0fe5b12 100644 (file)
@@ -1,7 +1,6 @@
 from content.models import Document, Folder
 from django.http import Http404, HttpResponse
 from django.template import RequestContext, loader
-from settings import MEDIA_URL
 
 def document_view(request, slug=None, folders=None):
     if folders == None and slug == None:
@@ -50,6 +49,5 @@ def document_view(request, slug=None, folders=None):
         {
             "content"   : doc.content,
             "title"     : doc.title,
-            "media_url" : MEDIA_URL,
         })
     return HttpResponse(t.render(c))