Last active
August 7, 2017 08:46
-
-
Save brumar/fdfedfd61000757ee36c946c95e7ec59 to your computer and use it in GitHub Desktop.
pythonanywhere WSGI launcher for api star 0.1.17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1/ New Web App -> Custom WSGI | |
| # 2/ Open var/www/your_username_pythonanywhere_com_wsgi.py | |
| # 3/ Comment all active code and paste this one | |
| from apistar import app as appstar | |
| import sys | |
| path = "/home/path/to/you/apistar_project" # change this line | |
| if path not in sys.path: | |
| sys.path.append(path) | |
| import app as myapp | |
| application = appstar.get_wsgi_server(myapp.app) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment