I'm having trouble setting up Flask-bootstrap. From the official documentation, it seems like all I have to do is apply the Bootstrap constructor to my app
, and the templates will be automatically created. So I tried this:
from flask import Flask
from flask.ext.bootstrap import Bootstrap
app = Flask(__name__)
Bootstrap(app)
@app.route('/')
def index():
return '<h1>Where is Bootstrap?</h1>'
if __name__ == '__main__':
app.run(debug=True)
When I run it, no new directories are created and I find no base templates anywhere. Am I missing a critical step? Is there some directory to be created first (I tried creating templates
and static
and setting the permissions to 777 but that didn't help)? Or perhaps the base templates are first to be generated from the command line?