Fix monkeypatch ordering issue preventing boto3 from initializing
@@ -6,7 +6,7 @@ It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
-
+from gevent import monkey; monkey.patch_all()
import os
from django.core.wsgi import get_wsgi_application
@@ -14,7 +14,5 @@ from wsgi_basic_auth import BasicAuth
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cccatalog.settings")
-from gevent import monkey
-monkey.patch_all()
application = get_wsgi_application()
application = BasicAuth(application)
