Skip to content

Commit 5eca34d

Browse files
authored
Update nonce.rst
1 parent a2d8512 commit 5eca34d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/nonce.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ This tag will output a properly nonced script every time. For the sake of syntax
5050

5151
Django:
5252

53-
To enable the loading of the 'csp' tag in templates, you'll need to add the CSP template tags to the TEMPLATES settings.
53+
To enable the loading of the 'csp' tag in templates, you'll need to add the CSP template tags to the TEMPLATES section of your settings file..
5454

5555
.. code-block:: python
5656
@@ -64,6 +64,8 @@ To enable the loading of the 'csp' tag in templates, you'll need to add the CSP
6464
}
6565
]
6666
67+
Then you can load the 'csp' template tags and use 'script' in the template:
68+
6769
.. code-block:: jinja
6870
6971
{% load csp %}

0 commit comments

Comments
 (0)