Error - "The translation infrastructure cannot be initialized before the "
See original GitHub issueI just installed localflavor and then added the widgets
part to my form.
class Meta:
model = Address
exclude = []
widgets = {
'country_area': USStateSelect()
}
Then I get this error below. But as soon as I comment out the widgets
part from my form, the error goes away. Any ideas?
"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.
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
AppRegistryNotReady: The translation infrastructure cannot ...
When I try to access to my app, I'm getting the following error. AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps ......
Read more >AppRegistryNotReady, translation bug when deploying with ...
AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext calls at ...
Read more >The translation infrastructure cannot be initialized - DevPress
When I try to access to my app, I'm getting the following error. AppRegistryNotReady: The translation infrastructure cannot be initialized ...
Read more >AppRegistryNotReady trying to access model's verbose name
AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext ...
Read more >Django/djcelery 1.8.2 AppRegistryNotReady: Translation ...
core.exceptions.AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@chadsaun Hey. Im unable to reproduce this issue. Could you check that you have
application = get_wsgi_application()
instead ofapplication = WSGIHandler()
in yourwsgi.py
please.Only looking at the traceback can show what is possible to prevent this error. Generally, try to not trigger import of localflavor stuff in the init file of any app.