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

Frantz Romain picture Frantz Romain · Mar 2, 2012 · Viewed 11.6k times · Source

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

Answer

kgr picture kgr · Mar 2, 2012

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