Ticket #16273: static-files.txt.diff

File static-files.txt.diff, 780 bytes (added by BernhardEssl, 4 years ago)
  • docs/howto/static-files.txt

     
    6868
    6969   .. code-block:: html+django
    7070
    71        <img src="{{ STATIC_URL }}images/hi.jpg />
     71       <img src="{{ STATIC_URL }}images/hi.jpg" />
    7272
    7373   See :ref:`staticfiles-in-templates` for more details, including an
    7474   alternate method using a template tag.
     
    167167
    168168.. code-block:: html+django
    169169
    170      <img src="{{ STATIC_URL }}images/hi.jpg />
     170     <img src="{{ STATIC_URL }}images/hi.jpg" />
    171171
    172172If ``{{ STATIC_URL }}`` isn't working in your template, you're probably not
    173173using :class:`~django.template.RequestContext` when rendering the template.
Back to Top