Commits

Carl Meyer  committed 2b76fd0

default preview template uses MARKITUP_MEDIA_URL again, without conflicting with RequestContext

  • Participants
  • Parent commits 6d50988

Comments (0)

Files changed (2)

File markitup/templates/markitup/preview.html

 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>markItUp! preview</title>
-<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}/markitup/preview.css" />
+<link rel="stylesheet" type="text/css" href="{{ MARKITUP_MEDIA_URL }}markitup/preview.css" />
 </head>
 <body>
 {{ preview|safe }}

File markitup/views.py

-"""
-views for django-markitup
-
-Time-stamp: <2009-11-06 02:26:59 carljm views.py>
-
-"""
 from django.shortcuts import render_to_response
 from django.template import RequestContext
 
 def apply_filter(request):
     markup = filter_func(request.POST.get('data', ''))
     return render_to_response( 'markitup/preview.html',
-                              {'preview':markup},
+                              {'preview': markup,
+                               'MARKITUP_MEDIA_URL': settings.MARKITUP_MEDIA_URL},
                               context_instance=RequestContext(request))