mirror of
https://github.com/django/django.git
synced 2024-12-25 02:26:12 +00:00
Fixed #16273 -- Fixed typo in staticfiles docs. Thanks, BernhardEssl.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16407 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
28e5341bf4
commit
e008fde23e
@ -68,7 +68,7 @@ Basic usage
|
|||||||
|
|
||||||
.. code-block:: html+django
|
.. code-block:: html+django
|
||||||
|
|
||||||
<img src="{{ STATIC_URL }}images/hi.jpg />
|
<img src="{{ STATIC_URL }}images/hi.jpg" />
|
||||||
|
|
||||||
See :ref:`staticfiles-in-templates` for more details, including an
|
See :ref:`staticfiles-in-templates` for more details, including an
|
||||||
alternate method using a template tag.
|
alternate method using a template tag.
|
||||||
@ -167,7 +167,7 @@ Once that's done, you can refer to :setting:`STATIC_URL` in your templates:
|
|||||||
|
|
||||||
.. code-block:: html+django
|
.. code-block:: html+django
|
||||||
|
|
||||||
<img src="{{ STATIC_URL }}images/hi.jpg />
|
<img src="{{ STATIC_URL }}images/hi.jpg" />
|
||||||
|
|
||||||
If ``{{ STATIC_URL }}`` isn't working in your template, you're probably not
|
If ``{{ STATIC_URL }}`` isn't working in your template, you're probably not
|
||||||
using :class:`~django.template.RequestContext` when rendering the template.
|
using :class:`~django.template.RequestContext` when rendering the template.
|
||||||
|
Loading…
Reference in New Issue
Block a user