Skip to content

Commit

Permalink
Doc update.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Feb 1, 2015
1 parent 25cb4a4 commit 04ad9e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/peewee/playhouse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3392,7 +3392,7 @@ This will print the following code to *stdout* (which you can redirect into a fi
Flask Utils
-----------

The ``playhouse.flask_utils`` module contains several helpers for integrating peewee with the `Flask <http://flask.pocoo.org/>` web framework.
The ``playhouse.flask_utils`` module contains several helpers for integrating peewee with the `Flask <http://flask.pocoo.org/>`_ web framework.

Database wrapper
^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -3426,6 +3426,8 @@ Basic usage:
The above code example will create and instantiate a peewee :py:class:`PostgresqlDatabase` specified by the given database URL. Request hooks will be configured to establish a connection when a request is received, and automatically close the connection when the response is sent. Lastly, the :py:class:`FlaskDB` class exposes a :py:attr:`FlaskDB.Model` property which can be used as a base for your application's models.

.. note:: The underlying peewee database can be accessed using the ``FlaskDB.database`` attribute.

While the above example shows using a database URL, for more advanced usages you can specify a dictionary of configuration options:

.. code-block:: python
Expand Down

0 comments on commit 04ad9e4

Please sign in to comment.