diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 95104afacf0..42f2038650b 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -2592,9 +2592,7 @@ tuples, e.g.:: ("downloads", "/opt/webfiles/stats"), ) -Example: - -Assuming you have :setting:`STATIC_URL` set ``'/static/'``, the +For example, assuming you have :setting:`STATIC_URL` set to ``'/static/'``, the :djadmin:`collectstatic` management command would collect the "stats" files in a ``'downloads'`` subdirectory of :setting:`STATIC_ROOT`. @@ -2604,7 +2602,7 @@ This would allow you to refer to the local file .. code-block:: html+django - + .. setting:: STATICFILES_STORAGE diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 6e773f67c79..6d1ca6b42c1 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -2456,10 +2456,9 @@ get_static_prefix .. highlight:: html+django -If you're not using :class:`~django.template.RequestContext`, or if you need -more control over exactly where and how :setting:`STATIC_URL` is injected -into the template, you can use the :ttag:`get_static_prefix` template tag -instead:: +You should prefer the :ttag:`static` template tag, but if you need more control +over exactly where and how :setting:`STATIC_URL` is injected into the template, +you can use the :ttag:`get_static_prefix` template tag:: {% load static %} Hi!