:rotating_light:currently unmaintained:rotating_light: A reuseable django app for storing preferences into database.
Other
12
stars
4
forks
source link
AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext calls at import time. #7
I am facing the following issue when using dbpreferences with django 1.8.13
File "/data/dbpreferences/models.py", line 84, in
class Preference(models.Model):
File "/data/dbpreferences/models.py", line 92, in Preference
site = models.ForeignKey(Site, editable=False, verbosename=('Site'))
File "/data/lib/python2.7/site-packages/django/utils/translation/init.py", line 84, in ugettext
return _trans.ugettext(message)
File "/data/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 330, in ugettext
return do_translate(message, 'ugettext')
File "/data/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 307, in do_translate
_default = _default or translation(settings.LANGUAGE_CODE)
File "/data/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 209, in translation
_translations[language] = DjangoTranslation(language)
File "/data/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 118, in init
self._add_installed_apps_translations()
File "/data/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 159, in _add_installed_apps_translations
"The translation infrastructure cannot be initialized before the "
AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext calls at import time.
I am facing the following issue when using dbpreferences with django 1.8.13
File "/data/dbpreferences/models.py", line 84, in
class Preference(models.Model):
File "/data/dbpreferences/models.py", line 92, in Preference site = models.ForeignKey(Site, editable=False, verbosename=('Site'))
File "/data/lib/python2.7/site-packages/django/utils/translation/init.py", line 84, in ugettext return _trans.ugettext(message)
File "/data/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 330, in ugettext return do_translate(message, 'ugettext')
File "/data/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 307, in do_translate _default = _default or translation(settings.LANGUAGE_CODE)
File "/data/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 209, in translation _translations[language] = DjangoTranslation(language)
File "/data/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 118, in init self._add_installed_apps_translations()
File "/data/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 159, in _add_installed_apps_translations "The translation infrastructure cannot be initialized before the "
AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext calls at import time.