mirror of
https://github.com/pallets-eco/flask-debugtoolbar.git
synced 2025-12-31 10:39:33 -06:00
18 lines
374 B
Python
18 lines
374 B
Python
from flask import Flask, render_template
|
|
from flaskext.script import Manager
|
|
from flaskext.debugtoolbar import DebugToolbarExtension
|
|
|
|
app = Flask(__name__)
|
|
toolbar = DebugToolbarExtension(app)
|
|
|
|
@app.route('/')
|
|
def index():
|
|
app.logger.info("Hello there")
|
|
|
|
return render_template('index.html')
|
|
|
|
if __name__ == "__main__":
|
|
manager = Manager(app)
|
|
manager.run()
|
|
|