File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ Add :file:`views.py` and create a *posts* blueprint_:
307
307
308
308
Now in :file:`__init__.py` register the blueprint, avoiding a circular
309
309
dependency by registering the blueprints in a method. Add the following code
310
- inline (not in the main block) :
310
+ to the module :
311
311
312
312
.. code-block:: python
313
313
@@ -318,8 +318,10 @@ inline (not in the main block):
318
318
319
319
register_blueprints(app)
320
320
321
- .. _blueprint: http://flask.pocoo.org/docs/blueprints/
321
+ Add this method and method call to the main body of the module and not
322
+ in the main block.
322
323
324
+ .. _blueprint: http://flask.pocoo.org/docs/blueprints/
323
325
324
326
Add Templates
325
327
~~~~~~~~~~~~~
@@ -999,8 +1001,8 @@ Now you have a fully fledged tumbleblog using Flask and MongoEngine!
999
1001
.. image:: .static/flask-mongoengine-tumblelog.png
1000
1002
:align: center
1001
1003
1002
- Having issues?
1003
- --------------
1004
- The source code is available on Github: `source code`_
1004
+ Additional Resources
1005
+ --------------------
1005
1006
1006
- .. _source code: https://github.com/rozza/flask-tumblelog
1007
+ The complete source code is available on Github:
1008
+ <https://github.com/rozza/flask-tumblelog>
You can’t perform that action at this time.
0 commit comments