Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"TemplateSyntaxError: 'humanize' is not a valid tag library:" in DJango

While setting up the django-registration module I have run into a bit of trouble. Everything works correctly as far as rendering templates. After trying to test-register I am hit with this error. I do have Django.contrib.humanize in the settings.py file. Any help is appreciated

like image 611
Frantz Romain Avatar asked Mar 02 '12 18:03

Frantz Romain


1 Answers

As the docs say:

To activate these filters, add 'django.contrib.humanize' to your INSTALLED_APPS setting.

So perhaps you should have "django." not "Django." ? See Django docs on django.contrib.humanize

Also do you have "{% load humanize %}" in the templates? You may also want to look at TemplateSyntaxError: 'settings_tags' is not a valid tag library

like image 192
kgr Avatar answered Oct 29 '22 02:10

kgr