Skip to content
Myr

Touch up (tiny) doc as requested by emiel, #244.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ron DuPlain · committed by Ron DuPlain · parent 87234fb · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/patterns/appfactories.rst+1 added-1 removed
37 unmodified lines
38 return app3940The downside is that you cannot use the application object in the modules41at import time. You can however use it from within a request. How do you42get access the application with the config? Use42get access to the application with the config? Use43:data:`~flask.current_app`::4445 from flask import current_app, Module, render_template46 admin = Module(__name__, url_prefix='/admin')
29 unmodified lines