Commits

Denis Darii committed 93e30cf Draft

added RequestContext when render the page content

  • Participants
  • Parent commits dc9b719

Comments (0)

Files changed (1)

File e1337cms/views.py

 # coding: utf-8
 from django.views.generic import DetailView
-from django.template import Context, Template
+from django.template import RequestContext, Template
 from django.http import HttpResponse
 from e1337cms.models import Page
 
         """
         t = Template(self.object.content)
 
-        rendered = t.render(Context(context))
+        rendered = t.render(RequestContext(self.request, context))
         return HttpResponse(rendered)