This commit is contained in:
GitHub Merge Button 2011-05-08 03:32:14 -07:00
commit c64f466441

View file

@ -57,7 +57,7 @@ following quick checklist:
2. all the view functions (the ones with a :meth:`~flask.Flask.route` 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 when in the `__init__.py` file.
Not the object itself, but the module it is in. Import the view module Not the object itself, but the module it is in. Import the view module
*after the application object is created*. **after the application object is created**.
Here's an example `__init__.py`:: Here's an example `__init__.py`::