diff options
| author | Tim Graham <timograham@gmail.com> | 2016-09-12 16:05:07 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-09-12 16:05:53 -0400 |
| commit | 1701fd3d3c6662cefed2e24e1eae8afd0cf56880 (patch) | |
| tree | 9fcc46b93c19cce637a0af7f82ad9ba97cfef775 | |
| parent | 23cf7e50d1dfceb0836032d0e8fcf1fa4da7e855 (diff) | |
[1.10.x] Fixed #27212 -- Fixed typo in docs/howto/static-files/index.txt.
Backport of c2e94bd8df9703b4565af7e180bcc043ae339055 from master
| -rw-r--r-- | docs/howto/static-files/index.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/howto/static-files/index.txt b/docs/howto/static-files/index.txt index b60a85505f..8244b685ce 100644 --- a/docs/howto/static-files/index.txt +++ b/docs/howto/static-files/index.txt @@ -19,7 +19,7 @@ Configuring static files STATIC_URL = '/static/' 3. In your templates, either hardcode the url like - ``/static/my_app/myexample.jpg`` or, preferably, use the :ttag:`static` + ``/static/my_app/example.jpg`` or, preferably, use the :ttag:`static` template tag to build the URL for the given relative path by using the configured :setting:`STATICFILES_STORAGE` storage (this makes it much easier when you want to switch to a content delivery network (CDN) for serving @@ -30,10 +30,10 @@ Configuring static files .. code-block:: html+django {% load static %} - <img src="{% static "my_app/myexample.jpg" %}" alt="My image"/> + <img src="{% static "my_app/example.jpg" %}" alt="My image"/> 4. Store your static files in a folder called ``static`` in your app. For - example ``my_app/static/my_app/myimage.jpg``. + example ``my_app/static/my_app/example.jpg``. .. admonition:: Serving the files |
