|
|
|
@ -1,5 +1,8 @@ |
|
|
|
|
|
|
|
#!/usr/bin/python |
|
|
|
|
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
|
|
|
|
|
|
|
|
""" |
|
|
|
""" |
|
|
|
WSGI config for zsite project. |
|
|
|
WSGI config for prototype project. |
|
|
|
|
|
|
|
|
|
|
|
It exposes the WSGI callable as a module-level variable named ``application``. |
|
|
|
It exposes the WSGI callable as a module-level variable named ``application``. |
|
|
|
|
|
|
|
|
|
|
|
@ -8,7 +11,10 @@ https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/ |
|
|
|
""" |
|
|
|
""" |
|
|
|
|
|
|
|
|
|
|
|
import os |
|
|
|
import os |
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zsite.settings") |
|
|
|
import newrelic.agent |
|
|
|
|
|
|
|
newrelic.agent.initialize("app/conf/newrelic.ini") |
|
|
|
|
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings") |
|
|
|
|
|
|
|
|
|
|
|
from django.core.wsgi import get_wsgi_application |
|
|
|
from django.core.wsgi import get_wsgi_application |
|
|
|
application = get_wsgi_application() |
|
|
|
application = get_wsgi_application() |
|
|
|
|
|
|
|
application = newrelic.agent.wsgi_application()(application) |