diff options
Diffstat (limited to 'docs/howto/static-files.txt')
-rw-r--r-- | docs/howto/static-files.txt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/howto/static-files.txt b/docs/howto/static-files.txt index f93a4e9ba4..209cf38c36 100644 --- a/docs/howto/static-files.txt +++ b/docs/howto/static-files.txt @@ -1,5 +1,3 @@ -.. _howto-static-files: - ========================= How to serve static files ========================= @@ -33,7 +31,7 @@ Using this method is **inefficient** and **insecure**. Do not use this in a production setting. Use this only for development. For information on serving static files in an Apache production environment, -see the :ref:`Django mod_python documentation <serving-media-files>`. +see the :ref:`Django mod_wsgi documentation <serving-media-files>`. How to do it ============ @@ -42,7 +40,7 @@ Here's the formal definition of the :func:`~django.views.static.serve` view: .. function:: def serve(request, path, document_root, show_indexes=False) -To use it, just put this in your :ref:`URLconf <topics-http-urls>`:: +To use it, just put this in your :doc:`URLconf </topics/http/urls>`:: (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/path/to/media'}), @@ -71,7 +69,7 @@ required. For example, if we have a line in ``settings.py`` that says:: STATIC_DOC_ROOT = '/path/to/media' -...we could write the above :ref:`URLconf <topics-http-urls>` entry as:: +...we could write the above :doc:`URLconf </topics/http/urls>` entry as:: from django.conf import settings ... |