Advertisement
themoosemind

/home/moose/hwrt.wsgi

Feb 8th, 2015
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. #!/usr/bin/python
  2. import sys
  3. import logging
  4.  
  5. # Activate virtual environment.
  6. # If you are not using venv, skip this.
  7. # But you really should be using it!
  8. activate_this = "/home/moose/venvs/hwrt/bin/activate_this.py"
  9. execfile(activate_this, dict(__file__=activate_this))
  10.  
  11.  
  12. # Handle logging
  13. logging.basicConfig(stream=sys.stderr)
  14.  
  15. sys.path.insert(0, "/home/moose/hwrtapp/main.py")
  16. from YourMainPyFileName import app as application
  17. application.secret_key = "your_secret_key"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement