Fred

TemplateSyntaxError: Invalid filter: 'crispy'

django Icon

TemplateSyntaxError

Invalid filter: 'crispy'

An unhandled exception occurred on line 45
42
                <td>{{ recipe.salad }}</td>
43
                <td>{{ recipe.batch }}</td>
44
                <td> {% csrf_token %}</td>
45
                <td>{{ form|crispy }}</td>
46
                <td><button class="btn btn-secondary btn-sm" type="submit">Add</button></td>
47
            </tr>

Solution

Forgot to add {% load crispy_forms_tags %} to the template after adding {{ form|crispy }}            
Mar 03, 2021 Anyone

0 replies


Install the browser extension

Found this solution helpful? Try our extension for quick solutions to your Django errors.

Chrome logo Add to Chrome - It's free