mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-09 15:42:23 +03:00
Make more fixes
This commit is contained in:
parent
458bea7b83
commit
dd5eca9754
|
@ -175,8 +175,6 @@ Do next in the terminal::
|
||||||
export FLASK_ENV=development
|
export FLASK_ENV=development
|
||||||
flask run
|
flask run
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The output should be something like::
|
The output should be something like::
|
||||||
|
|
||||||
* Serving Flask app "githubnavigator.application" (lazy loading)
|
* Serving Flask app "githubnavigator.application" (lazy loading)
|
||||||
|
@ -201,7 +199,10 @@ For adding it to our application we will get
|
||||||
`Bootstrap-Flask <https://pypi.org/project/Bootstrap-Flask/>`_ extension.
|
`Bootstrap-Flask <https://pypi.org/project/Bootstrap-Flask/>`_ extension.
|
||||||
It will help us to add all needed static files in few clicks.
|
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
|
dependency-injector
|
||||||
flask
|
flask
|
||||||
|
@ -345,13 +346,7 @@ Put next into the ``index.html``:
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% if repositories|length == 0 %}
|
<p><small>Results found: {{ repositories|length }}</small></p>
|
||||||
<small>No search results</small>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<small>Results found: {{ repositories|length }}</small>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -411,7 +406,7 @@ Edit ``views.py``:
|
||||||
|
|
||||||
That's it.
|
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:
|
You should see:
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 87 KiB |
|
@ -18,13 +18,7 @@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% if repositories|length == 0 %}
|
<p><small>Results found: {{ repositories|length }}</small></p>
|
||||||
<small>No search results</small>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<small>Results found: {{ repositories|length }}</small>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user