Template Syntax Error: Invalid filter: richtext
See original GitHub issueFollowing the tutorial here and running Django 1.8.5 with Python 3.4.3, I get the above error when adding {{ self.body|richtext }}
to my home_page.html template. I followed the instructions exactly a couple of times and keep getting this. I manged to make it work by using the safe
filter instead (i.e. {{ self.body|safe }}
, however this can allow all kinds of stuff in the template… I apologize if this is actually a noobish mistake on my part, but in that case at least the docs should be updated.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Django: TemplateSyntaxError, Invalid filter - Stack Overflow
I'm trying to access a value from a dictionary using a variable, all in an HTML file that follows Django's Templating language. Django's ......
Read more >getting this error "Invalid filter: 'richtext_filters'"
locally but I get this error on production when navigating to any page with rich text TemplateSyntaxError at /services/ Invalid filter: ...
Read more >TemplateSyntaxError: Invalid filter: 'crispy' - Bugshare
TemplateSyntaxError. Invalid filter: 'crispy'. An unhandled exception occurred on line 45 ...
Read more >Your first Wagtail site
In this tutorial, we use the richtext filter to escape and print the contents of a ... Django will throw a TemplateSyntaxError if...
Read more >Django: TemplateSyntaxError, Invalid filter - iTecNote
Django: TemplateSyntaxError, Invalid filter. djangodjango-filtersdjango-templates. I'm trying to access a value from a dictionary using a variable, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s been 5 years since this happened, but I appreciate the time and effort that you all put into documentation and following up on GH issues, since finding this on Google was a great time saver for me today ❤️
Looks like an easy mistake to make, thanks for reporting! As this is the most read part of the documentation, it’s important that we iron out any issues.
Perhaps we should highlight the changes in bold (so that
{% load %}
stands out), or improve the explanation?