First time here? Check out the FAQ!

Revision history  [back]

Do you have USE_I18N = True in your settings.py?

The complaint on _ is not defined probably points at translation module not being imported.

Also - do you have any customization on your site? Maybe you could dpaste your settings.py (excluding any potentially sensitive info?)

edit is it possible that your version of jinja2 does not support the _ alias to gettext? Could you tell what is the jinja2 library version on your machine?

python manage.py shell
>>>import jinja2
>>>jinja2.__version__

Thanks.

Do you have USE_I18N = True in your settings.py?

The complaint on _ is not defined probably points at translation module not being imported.

Also - do you have any customization on your site? Maybe you could dpaste your settings.py (excluding any potentially sensitive info?)

edit is it possible that your version of jinja2 does not support the _ alias to gettext? Could you tell what is the jinja2 library version on your machine?

python manage.py shell
>>>import jinja2
>>>jinja2.__version__

Thanks.