Skip to content

Commit

Permalink
[1.6.x] Fixed #1349 -- Clarified docs on serving files from STATIC/ME…
Browse files Browse the repository at this point in the history
…DIA_URL.

Backport of fb7c347 from master
  • Loading branch information
timgraham committed May 5, 2014
1 parent cddbaca commit 5783088
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/howto/static-files/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ details on how ``staticfiles`` finds your files.
by putting those static files inside *another* directory named for the
application itself.

.. _serving-static-files-in-development:

Serving static files during development.
========================================
Expand Down Expand Up @@ -108,6 +109,8 @@ this by adding the following snippet to your urls.py::
folder; it doesn't perform static files discovery like
:mod:`django.contrib.staticfiles`.

.. _serving-uploaded-files-in-development:

Serving files uploaded by a user during development.
====================================================

Expand Down
7 changes: 6 additions & 1 deletion docs/ref/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,8 @@ Default: ``''`` (Empty string)

URL that handles the media served from :setting:`MEDIA_ROOT`, used
for :doc:`managing stored files </topics/files>`. It must end in a slash if set
to a non-empty value.
to a non-empty value. You will need to :ref:`configure these files to be served
<serving-uploaded-files-in-development>` in both development and production.

Example: ``"http://media.example.com/"``

Expand Down Expand Up @@ -2567,6 +2568,10 @@ If not ``None``, this will be used as the base path for

It must end in a slash if set to a non-empty value.

You may need to :ref:`configure these files to be served in development
<serving-static-files-in-development>` and will definitely need to do so
:doc:`in production </howto/static-files/deployment>`.

.. setting:: STATICFILES_DIRS

STATICFILES_DIRS
Expand Down

0 comments on commit 5783088

Please sign in to comment.