diff --git a/docs/howto/static-files.txt b/docs/howto/static-files.txt index 29a2c2f6e29..db76c247423 100644 --- a/docs/howto/static-files.txt +++ b/docs/howto/static-files.txt @@ -68,7 +68,7 @@ Basic usage .. code-block:: html+django - + See :ref:`staticfiles-in-templates` for more details, **including** an alternate method using a template tag. @@ -131,7 +131,7 @@ You could, of course, simply hardcode the path to you assets in the templates: .. code-block:: html - + Of course, there are some serious problems with this: it doesn't work well in development, and it makes it *very* hard to change where you've deployed your @@ -167,7 +167,7 @@ Once that's done, you can refer to :setting:`STATIC_URL` in your templates: .. code-block:: html+django - + If ``{{ STATIC_URL }}`` isn't working in your template, you're probably not using :class:`~django.template.RequestContext` when rendering the template. @@ -193,7 +193,7 @@ tag. It builds the URL for the given relative path by using the configured .. code-block:: html+django {% load staticfiles %} - + It is also able to consume standard context variables, e.g. assuming a ``user_stylesheet`` variable is passed to the template: diff --git a/docs/intro/overview.txt b/docs/intro/overview.txt index bd2fdfdb6c0..49233fb8a76 100644 --- a/docs/intro/overview.txt +++ b/docs/intro/overview.txt @@ -279,7 +279,7 @@ Here's what the "base.html" template might look like: