summaryrefslogtreecommitdiff
path: root/docs/howto/static-files
diff options
context:
space:
mode:
Diffstat (limited to 'docs/howto/static-files')
-rw-r--r--docs/howto/static-files/index.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/howto/static-files/index.txt b/docs/howto/static-files/index.txt
index e9a7c7c0a1..4faeed4714 100644
--- a/docs/howto/static-files/index.txt
+++ b/docs/howto/static-files/index.txt
@@ -19,17 +19,17 @@ 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<staticfiles-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 static files).
+ ``/static/my_app/myexample.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
+ static files).
.. _staticfiles-in-templates:
.. code-block:: html+django
- {% load staticfiles %}
+ {% load static %}
<img src="{% static "my_app/myexample.jpg" %}" alt="My image"/>
4. Store your static files in a folder called ``static`` in your app. For