question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Template Syntax Error: Invalid filter: richtext

See original GitHub issue

Following 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:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
teddywardcommented, Jul 8, 2021

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 ❤️

1reaction
kaedrohocommented, Oct 4, 2015

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found