add flask-bootstrap

stable
neingeist 6 years ago
parent 5358ea95d6
commit c56c1226d3

@ -1,7 +1,9 @@
from flask import Flask
from flask_bootstrap import Bootstrap
from config import Config
app = Flask(__name__)
Bootstrap(app)
app.config.from_object(Config)
from app import routes

@ -1,23 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Prolefeeder</title>
</head>
<body>
<div>
<a href="{{ url_for('index') }}">Home</a>
<a href="{{ url_for('download') }}">Download</a>
</div>
<hr>
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</body>
</html>
{% extends "bootstrap/base.html" %}
{% block title %}Prolefeeder{% endblock %}
{% block content %}
<div class="container">
{% block app_content %}
{% endblock %}
</div>
{% endblock %}

@ -1,6 +1,6 @@
{% extends "base.html" %}
{% block content %}
{% block app_content %}
<h1>Download</h1>
<form action="" method="post" novalidate>
{{ form.hidden_tag() }}

@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block content %}
{% block app_content %}
<h1>Hello!</h1>
{% endblock %}

@ -1,3 +1,4 @@
flask
flask-bootstrap
flask-wtf
python-dotenv

Loading…
Cancel
Save