question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error - "The translation infrastructure cannot be initialized before the "

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vladimirnanicommented, Apr 3, 2016

@chadsaun Hey. Im unable to reproduce this issue. Could you check that you have application = get_wsgi_application() instead of application = WSGIHandler() in your wsgi.py please.

0reactions
claudepcommented, Aug 19, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found