Skip to content

Commit

Permalink
fixed static files path in preview view
Browse files Browse the repository at this point in the history
  • Loading branch information
rhblind committed Oct 15, 2014
1 parent e7629a9 commit cbb3917
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django_markdown/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Supports preview. """
from django.core.files.storage import default_storage
from django.shortcuts import render

from . import settings
Expand All @@ -19,5 +20,5 @@ def preview(request):
return render(
request, settings.MARKDOWN_PREVIEW_TEMPLATE, dict(
content=request.REQUEST.get('data', 'No content posted'),
css=settings.STATIC_URL + settings.MARKDOWN_STYLE,
css=default_storage.url(settings.MARKDOWN_STYLE)
))

0 comments on commit cbb3917

Please sign in to comment.