Update docs/patterns/packages.rst

This commit is contained in:
Filip Ristić 2012-03-20 22:07:58 +01:00
parent eac350d1e6
commit c2661dd4bc

View file

@ -55,7 +55,7 @@ following quick checklist:
`__init__.py` file. That way each module can import it safely and the
`__name__` variable will resolve to the correct package.
2. all the view functions (the ones with a :meth:`~flask.Flask.route`
decorator on top) have to be imported when in the `__init__.py` file.
decorator on top) have to be imported in the `__init__.py` file.
Not the object itself, but the module it is in. Import the view module
**after the application object is created**.