Last active
August 29, 2015 13:57
-
-
Save h4k1m0u/9685018 to your computer and use it in GitHub Desktop.
This file contains 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
`deploy.wsgi file` | |
#!/usr/bin/python | |
from color import app | |
import sys | |
# add app path to python's path | |
sys.path.insert(0, "/home/hakim/public_html/flaskColourlovers") | |
# initialize wsgi app | |
application = app | |
`app.py file` | |
#!/usr/bin/python | |
from flask import Flask | |
# from colourlovers import ColourLovers | |
# create app | |
app = Flask(__name__) | |
# routes | |
@app.route('/') | |
def home(): | |
return 'hello flask world' | |
# run app | |
if __name__ == '__main__': | |
app.run(debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment