diff options
Diffstat (limited to 'docs/ref/settings.txt')
| -rw-r--r-- | docs/ref/settings.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 95104afacf..42f2038650 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 - <a href="{{ STATIC_URL }}downloads/polls_20101022.tar.gz"> + <a href="{% static "downloads/polls_20101022.tar.gz" %}"> .. setting:: STATICFILES_STORAGE |
