From d26d77fa8b54feddf3dfc54533b389e18d29fa96 Mon Sep 17 00:00:00 2001 From: prateekrc3 Date: Mon, 4 Jan 2016 15:46:27 +0530 Subject: [PATCH] Update views.py Since request.REQUEST was deprecated in Django 1.7 and removed from Django 1.9, the new code read data from request.POST instead. --- 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..ef29860 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.POST.get('data', 'No content posted'), css=settings.MARKDOWN_STYLE ))