Ensure ugettext is available absolutely everywhere

1
2
3
4
5
6
# Add to __init.py__ in root of your project (same directory 
# as urls.py and settings.py):

from django.utils.translation import ugettext
import __builtin__
__builtin__.__dict__['_'] = ugettext

Comments

(Forgotten your password?)

You may use Markdown syntax here, but raw HTML will be removed.