I'm trying to port my Django project to Dango 1.7rc2 but I'm hitting the app registry error. I know that this is mentioned in the Troubleshooting section of the documentation but I don't understand why this is happening.
__init__.py", line 44, in register_layer layer['verbose_name'] = model._meta.verbose_name.capitalize() File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 132, in __wrapper__ res = func(*self.__args, **self.__kw) File "/usr/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 83, in ugettext return _trans.ugettext(message) File "/usr/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 325, in ugettext return do_translate(message, 'ugettext') File "/usr/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 306, in do_translate _default = translation(settings.LANGUAGE_CODE) File "/usr/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 209, in translation default_translation = _fetch(settings.LANGUAGE_CODE) File "/usr/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 189, in _fetch "The translation infrastructure cannot be initialized before the " django.core.exceptions.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. The model's verbose name is a translated string, but models.py uses ugettext_lazy so I don't understand why it ends up using ugettext. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/05bc2654-278d-4824-b15f-a9b8a671fb59%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.