repl.it
@RohilPatel/

flask-boilerplate-1

Python

Hello world in python flask

fork
loading
Files
  • main.py
  • index.html
  • Packager files
  • poetry.lock
  • pyproject.toml
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
from flask import Flask

app = Flask(__name__, static_folder='.', root_path='/home/runner')

app.config.update(TEMPLATES_AUTO_RELOAD=True)

@app.route('/')
def root():
    return app.send_static_file('./index.html')

if __name__ == '__main__':
    app.run(host='0.0.0.0', port='3000')
?