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:
{
"content" : doc.content,
"title" : doc.title,
- "media_url" : MEDIA_URL,
})
return HttpResponse(t.render(c))