Opened 10 years ago

Closed 10 years ago

#23146 closed Bug (fixed)

AppRegistryNotReady, translation bug when deploying with uWSGI

Reported by: joostvandorp@… 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)

traceback.txt (5.2 KB ) - added by joostvandorp@… 10 years ago.
Traceback
vassal.ini (374 bytes ) - added by joostvandorp@… 10 years ago.
uwsgi vassal config

Download all attachments as: .zip

Change History (3)

by joostvandorp@…, 10 years ago

Attachment: traceback.txt added

Traceback

by joostvandorp@…, 10 years ago

Attachment: vassal.ini added

uwsgi vassal config

comment:1 by anonymous, 10 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top