diff options
| author | Johannes Hoppe <info@johanneshoppe.com> | 2015-11-07 12:24:38 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-10 14:30:19 -0500 |
| commit | cf546e11ac76c8dec527e39ff8ce8249a195ab42 (patch) | |
| tree | c86d039e94099e47382bbeaf4361fef22bbcf55e /docs/howto/static-files | |
| parent | 6be9589eb34f79914666c9d9e1e15bdb7fc44df2 (diff) | |
Fixed #21221 -- Made form Media and static template tag use staticfiles if installed.
Diffstat (limited to 'docs/howto/static-files')
| -rw-r--r-- | docs/howto/static-files/index.txt | 12 |
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 |
