I'm having some problems to get a simple flask app to use the flask-bootstrap package.
Following the documentation I installed flask-bootstrap, created the 2 files below and this worked fine. The problem I'm facing is that when I access index.html in the browser I see only the text bootstrap/base.html returned and see no reference to the bootstrap css files when I view the source.
Appreciate any guidance on what I am missing here. Thanks.
__init__.py
from flask import Flask, render_template
from flask.ext.bootstrap import Bootstrap
app = Flask(__name__)
bootstrap = Bootstrap(app)
@app.route("/")
def homepage():
return render_template('index.html')
if __name__ == "__main__":
app.run(debug=True)
index.html
{% extends "bootstrap/base.html" %}
{% block title %}This is an example page{% endblock %}
{% block navbar %}
<div class="navbar navbar-fixed-top">
<!-- ... -->
</div>
{% endblock %}
{% block content %}
<h1>Hello, Bootstrap</h1>
{% endblock %}
localhost:5000, depending on that you configure your flask appindex.html?, shouldn'tindex.htmlbe the root page just by typing in the browserlocalhost:5000for example?