Pythonのバージョン:2.7.10 Djangoのバージョン:1.8 環境:仮想環境アプリレジストリエラーDjangoの1.8
が問題:私は./manage.pyのrunserverまたはシェルを実行しようとするたびに、私はこのエラーを取得する
"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."
いくつかの関連記事の回答に基づいて、私はwsgiファイルもチェックしており、wsgiアプリケーションを参照する更新された方法があります。私のwsgiファイルの外観は次のとおりです。
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "instant_reports.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
これを解決するための助けとガイダンスはありますか?
、あなたが 'gettextのへの呼び出しを持っていることを知らせるています'が輸入時に実行されています。あなたはそれらを見せることができますか? –
私は実際に複数の場所でこれを呼び出しています - 見る必要がある特定のファイルはありますか? –