summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-03-28 11:07:33 -0400
committerTim Graham <timograham@gmail.com>2018-03-28 11:16:01 -0400
commitba5f24ea6491780bb245ed6f0e5f015f4defffe9 (patch)
tree283134c73002571c8df7b92aa0a0bb70bbea83ac /docs
parent34c522283710c3866833134ddf1a397da03999e8 (diff)
downloaddjango-ba5f24ea6491780bb245ed6f0e5f015f4defffe9.tar.gz
Fixed #29265 -- Removed the suggestion to hardcode static URLs.
Diffstat (limited to 'docs')
-rw-r--r--docs/howto/static-files/index.txt8
1 files changed, 2 insertions, 6 deletions
diff --git a/docs/howto/static-files/index.txt b/docs/howto/static-files/index.txt
index bff1a5daa1..b94a332549 100644
--- a/docs/howto/static-files/index.txt
+++ b/docs/howto/static-files/index.txt
@@ -18,12 +18,8 @@ Configuring static files
STATIC_URL = '/static/'
-3. In your templates, either hardcode the url like
- ``/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
- static files).
+3. In your templates, use the :ttag:`static` template tag to build the URL for
+ the given relative path using the configured :setting:`STATICFILES_STORAGE`.
.. _staticfiles-in-templates: