Advertisement
Guest User

crypt.wsgi

a guest
Jul 22nd, 2014
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement