Opened 11 years ago
Closed 11 years ago
#23146 closed Bug (fixed)
AppRegistryNotReady, translation bug when deploying with uWSGI
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Translations | Version: | 1.7-rc-2 |
| Severity: | Release blocker | Keywords: | uwsgi, translation |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
When attempting to deploy Django1.7-rc-2 the error blocks the site from loading every time.
"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.
This is after starting a new project. No additional apps are created or added.
Attachments (2)
Change History (3)
by , 11 years ago
| Attachment: | traceback.txt added |
|---|
comment:1 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
I always see the solution after reporting a bug.
The fix:
Change
module = django.core.handlers.wsgi:WSGIHandler()
to
module = django.core.wsgi:get_wsgi_application()
in the vassal.ini
Traceback