ld set <code class="docutils literal notranslate"><span class="pre">string_if_invalid</span></code> option in the <code class="docutils literal notranslate"><span class="pre">OPTIONS</span></code> of a <code class="docutils literal notranslate"><span class="pre">DjangoTemplates</span></code> backend instead.</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="sd">&quot;&quot;&quot; settings.py &quot;&quot;&quot;</span>

<span class="n">TEMPLATES</span> <span c