Skip to content

Instantly share code, notes, and snippets.

@h4k1m0u
Last active August 29, 2015 13:57
Show Gist options
  • Save h4k1m0u/9685018 to your computer and use it in GitHub Desktop.
Save h4k1m0u/9685018 to your computer and use it in GitHub Desktop.
`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