Commits

Anonymous committed 6d50988

use RequestContext for preview view

  • Participants
  • Parent commits 629552d

Comments (0)

Files changed (1)

File markitup/views.py

 
 """
 from django.shortcuts import render_to_response
+from django.template import RequestContext
+
 from markitup import settings
-
 from markitup.markup import filter_func
 
 def apply_filter(request):
     markup = filter_func(request.POST.get('data', ''))
     return render_to_response( 'markitup/preview.html',
-                              {'preview':markup,
-                               'MEDIA_URL': settings.MARKITUP_MEDIA_URL.rstrip('/')})
+                              {'preview':markup},
+                              context_instance=RequestContext(request))