from flask import Flask from Blog import app if __name__ == '__main__': app.run(debug=True)
""" This script runs the Blog application using a development server. """ from os import environ from Blog import app if __name__ == '__main__': HOST = environ.get('SERVER_HOST', 'localhost') try: PORT = int(environ.get('SERVER_PORT', '5555')) except ValueError: PORT = 5555 app.run(HOST, PORT)
from Blog import app app.run()
from Blog import app if __name__ == "__main__": app.run(debug=True, host="0.0.0.0", port="5000")