Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appregistryerror with django 1.7 #1

Open
pspierce opened this issue Mar 5, 2015 · 6 comments
Open

appregistryerror with django 1.7 #1

pspierce opened this issue Mar 5, 2015 · 6 comments

Comments

@pspierce
Copy link

pspierce commented Mar 5, 2015

django 1.7 documentation states to use ugettext_lazy; however, changing this in strings.py doesn't help.

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.

This should be easily reproducible with any model using SequenceField and Django 1.7.

@gnrfan
Copy link
Owner

gnrfan commented Apr 24, 2015

Thanks for reporting. I wil look into that.

@littleq0903
Copy link

any possible fix?

@littleq0903
Copy link

My exception was:

django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.

@vinamelody
Copy link

Hi, I am also getting this after adding sequence_field into installed apps ... is it possible to fix? thank you

@luanfonceca
Copy link

I am getting the same error on django 1.8.4

@luanfonceca
Copy link

The issue was that you can't use the uggetext on the import time. It should be the ugettext_lazy in the strings.py file.

Something like:

from django.utils.translation import ugettext_lazy as _

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants