import os
import sys
import site

SAL_ENV_DIR = '/home/docker/sal'

# Use site to load the site-packages directory of our virtualenv
# site.addsitedir(os.path.join(SAL_ENV_DIR, 'lib/python2.7/site-packages'))

# Make sure we have the virtualenv and the Django app itself added to our path
sys.path.append(SAL_ENV_DIR)
sys.path.append(os.path.join(SAL_ENV_DIR, 'sal'))
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sal.settings")
# try:
#     import newrelic.agent
#     if os.path.isfile(os.getenv('NEW_RELIC_INI'))
#         newrelic.agent.initialize(os.getenv('NEW_RELIC_INI'))
# except:
#     pass
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
