From dc81b35c3e7594f370d34b0111ad6446b17bb795 Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Wed, 3 Jul 2024 16:32:34 -0700 Subject: [PATCH] fix configuration example in docs --- doc/source/configuration.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/configuration.rst b/doc/source/configuration.rst index 2bbcef1..05ffe0e 100644 --- a/doc/source/configuration.rst +++ b/doc/source/configuration.rst @@ -10,7 +10,7 @@ settings: .. code-block:: python STATIC_TEMPLATES = { - 'ENGINES': [ + 'ENGINES': [{ 'BACKEND': 'render_static.backends.StaticDjangoTemplates', 'DIRS': [BASE_DIR / 'tmpls' ], # look here for templates 'OPTIONS': { @@ -23,11 +23,11 @@ settings: ], 'builtins': ['render_static.templatetags.render_static'] }, - ], + }], 'context': { # define a global context dictionary that will be used to render all templates }, - 'templates' [ + 'templates': [ ('app/js/defines.js', { 'context': { 'defines': 'app.defines.DefinesClass'