From 61a64b08300a07742fd5f7ec083e437407702971 Mon Sep 17 00:00:00 2001 From: adi Date: Wed, 5 Nov 2014 10:44:31 +0100 Subject: [PATCH] Added missing {{ form.media }} --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 85b559c..4d1c0ae 100755 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Example (side-by-side editor and preview using Bootstrap's grid system): ```python #urls.py urlpatterns = [ - [...] + [...] url(r'^markdownx/', include('markdownx.urls')), ] ``` @@ -57,11 +57,20 @@ Example (side-by-side editor and preview using Bootstrap's grid system): static/css/markdownx.css static/js/markdownx.js +1. Include the form's required media in the template using `{{ form.media }}` + + ```html +
{% csrf_token %} + {% include "snippets/form.html" %} + +
+ {{ form.media }} + ``` + 1. Include *[jQuery](http://jquery.com)* and *[Marked](https://github.com/chjj/marked)* files ```html - [...]