Browse Source

Fixed #29265 -- Removed the suggestion to hardcode static URLs.

Tim Graham 7 years ago
parent
commit
ba5f24ea64
1 changed files with 2 additions and 6 deletions
  1. 2 6
      docs/howto/static-files/index.txt

+ 2 - 6
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: