SQLITE3 con aplicaciones web de frascos crud pdf
pip install flask-bootstrap
OSP PRO
pip install flask-bootstrap
# run.py
import os
from app import create_app
config_name = os.getenv('FLASK_CONFIG')
app = create_app(config_name)
if __name__ == '__main__':
app.run()
<!-- app/templates/base.html -->
<!-- Modify nav bar menu -->
<li><a href="{{ url_for('admin.list_roles') }}">Roles</a></li>
$ flask db init
pip install Flask-WTF
$ export FLASK_CONFIG=development
$ export FLASK_APP=run.py
$ flask run
* Serving Flask app "run"
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
$ pip install flask-migrate
$ flask db migrate
$ python tests.py
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
<!-- app/templates/base.html -->
<!-- Modify nav bar menu -->
<li><a href="{{ url_for('admin.list_departments') }}">Departments</a></li>