Update WSGI app creation to be compatible with Django 1.7
This resolves the following error when trying to run Horizon: 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. and is backwards-compatible with our currently supported versions (back to 1.4). Change-Id: I1e59f2bf6633a34cfe9230aa028f345e5fa70f94 Closes-Bug: #1382023
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import django.core.handlers.wsgi
|
from django.core.wsgi import get_wsgi_application
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
# Add this file path to sys.path in order to import settings
|
# Add this file path to sys.path in order to import settings
|
||||||
@@ -11,5 +11,4 @@ sys.stdout = sys.stderr
|
|||||||
|
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|
||||||
application = django.core.handlers.wsgi.WSGIHandler()
|
application = get_wsgi_application()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user