SHARE
TWEET

crypt.wsgi

a guest Jul 22nd, 2014 249 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os, sys
  2. import site
  3.  
  4. CRYPT_ENV_DIR = '/usr/local/crypt_env'
  5.  
  6. # Use site to load the site-packages directory of our virtualenv
  7. site.addsitedir(os.path.join(CRYPT_ENV_DIR, 'lib/python2.7/site-packages'))
  8.  
  9. # Make sure we have the virtualenv and the Django app itself added to our path
  10. sys.path.append(CRYPT_ENV_DIR)
  11. sys.path.append(os.path.join(CRYPT_ENV_DIR, 'crypt'))
  12. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "fvserver.settings")
  13. import django.core.handlers.wsgi
  14. application = django.core.handlers.wsgi.WSGIHandler()
RAW Paste Data
Want to get better at Python?
Learn to code Python in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top