Skip to content

Commit 162ea65

Browse files
authored
Merge pull request #149 from novafloss/micro-pr-django-lexer-docs
remove doc building warning because code-block is not js or HTML, but django template language
2 parents e0caa50 + 428e179 commit 162ea65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/install.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ If you're dealing with logged-in users (you surely do), you're going to need to
145145
In order to do so, you'll have to use a code similar to this:
146146

147147
.. literalinclude:: ../../demo/demo/builder/static/assets/csrftoken.js
148-
:language: javascript
148+
:language: js
149149

150150
.. warning:: you'll have to make sure that your CSRF configuration is properly set (middlewares, context managers, etc).
151151

152152
Then in your templates, those that'll have to display and handle the form editor, you'll have to call this function like this:
153153

154-
.. code-block:: js
154+
.. code-block:: django
155155
156156
<script src="{% static "assets/csrftoken.js" %}"></script>
157157
<script type="text/javascript">

0 commit comments

Comments
 (0)