diff --git a/docs/tutorials/flask.rst b/docs/tutorials/flask.rst index dacb045c..c840fcc5 100644 --- a/docs/tutorials/flask.rst +++ b/docs/tutorials/flask.rst @@ -175,8 +175,6 @@ Do next in the terminal:: export FLASK_ENV=development flask run - - The output should be something like:: * Serving Flask app "githubnavigator.application" (lazy loading) @@ -201,7 +199,10 @@ For adding it to our application we will get `Bootstrap-Flask `_ extension. It will help us to add all needed static files in few clicks. -Add ``bootstrap-flask`` to the ``requirements.txt``:: +Add ``bootstrap-flask`` to the ``requirements.txt``: + +.. code-block:: + :emphasize-lines: 3 dependency-injector flask @@ -345,13 +346,7 @@ Put next into the ``index.html``: - {% if repositories|length == 0 %} - No search results - {% endif %} - -

- Results found: {{ repositories|length }} -

+

Results found: {{ repositories|length }}

@@ -411,7 +406,7 @@ Edit ``views.py``: That's it. -Make sure the app is running and open ``http://127.0.0.1:5000/``. +Make sure the app is running or use ``flask run`` and open ``http://127.0.0.1:5000/``. You should see: diff --git a/docs/tutorials/flask_images/screen_01.png b/docs/tutorials/flask_images/screen_01.png index ad7120f5..9dbfa1c1 100644 Binary files a/docs/tutorials/flask_images/screen_01.png and b/docs/tutorials/flask_images/screen_01.png differ diff --git a/examples/miniapps/ghnav-flask/githubnavigator/templates/index.html b/examples/miniapps/ghnav-flask/githubnavigator/templates/index.html index f9cc345f..e7f0e9a1 100644 --- a/examples/miniapps/ghnav-flask/githubnavigator/templates/index.html +++ b/examples/miniapps/ghnav-flask/githubnavigator/templates/index.html @@ -18,13 +18,7 @@ - {% if repositories|length == 0 %} - No search results - {% endif %} - -

- Results found: {{ repositories|length }} -

+

Results found: {{ repositories|length }}