Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import sys
- import logging
- # Activate virtual environment.
- # If you are not using venv, skip this.
- # But you really should be using it!
- activate_this = "/home/moose/venvs/hwrt/bin/activate_this.py"
- execfile(activate_this, dict(__file__=activate_this))
- # Handle logging
- logging.basicConfig(stream=sys.stderr)
- sys.path.insert(0, "/home/moose/hwrtapp/main.py")
- from YourMainPyFileName import app as application
- application.secret_key = "your_secret_key"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement