Add headers

This commit is contained in:
Luke Murphy 2020-03-01 11:43:21 +00:00
parent a26ca908df
commit 0d14c01d0e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 14 additions and 0 deletions

View File

@ -34,10 +34,16 @@ Library prototyping based on Calibre with Flask
Example
*******
app.cfg
=======
.. code-block:: cfg
CALIBRESTEKJE_SQLITE_URL = "sqlite:///mymetadata.db"
app.py
======
.. code-block:: python
from calibrestekje import Book
@ -53,6 +59,14 @@ Example
def home():
return jsonify({"book-count": db.session.query(Book).count()})
command-line
============
.. code-block:: bash
$ export FLASK_APP=app.py
$ flask run
.. _documentation:
Documentation