[addb71]: / run.py

Download this file

15 lines (11 with data), 372 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
from flask import Flask
from routes.main import main
import os
app = Flask(__name__,
static_folder='app/static',
template_folder='app/templates')
# app = Flask(__name__, template_folder=os.path.abspath('app/templates'))
# ... rest of your code ...
app.register_blueprint(main)
if __name__ == '__main__':
app.run(debug=True)