From f0f17f17b0929e0017bded38374c332f1ad0691d Mon Sep 17 00:00:00 2001 From: Dark Goat <694934234@qq.com> Date: Thu, 31 Aug 2017 01:45:48 +0800 Subject: [PATCH] Update views.py context must be a dict rather than Context. --- django_markdown/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_markdown/views.py b/django_markdown/views.py index dbf352f..34dcab8 100644 --- a/django_markdown/views.py +++ b/django_markdown/views.py @@ -19,6 +19,6 @@ def preview(request): return render( request, settings.MARKDOWN_PREVIEW_TEMPLATE, dict( - content=request.REQUEST.get('data', 'No content posted'), + content=request.REQUEST.get('data', {'detail': 'No content posted'}), css=settings.MARKDOWN_STYLE ))