diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-11-11 21:43:49 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-11-11 21:43:49 +0000 |
| commit | 8e96584f6363cba7cbbac41771a4318dde9f46dd (patch) | |
| tree | 03b28bed127a0eadb339fb1770f37e5604dee167 /docs/ref/settings.txt | |
| parent | 216fdfab61f3ed82bf21a353d92dec094bd2b298 (diff) | |
Fixed #14524, #14582, #14617, #14665 and #14667 -- Tweaked staticfiles app.
* Updated StaticFilesHandler and AdminMediaHandler
to make use of the 404 handler if needed.
* Updated runserver management command to serve static files
only in DEBUG mode (or if specified the --insecure option)
and if the staticfiles app is in INSTALLED_APPS. Also added
an option to disable serving completely (--nostatic).
* Added check in debug mode if STATICFILES_* settings are
different to MEDIA_* settings.
* Removed a faulty PendingDeprecationWarning in AdminMediaHandler
that is triggered every time runserver is used.
* Fixed an issue with the modification time checks when
running collectstatic.
* Extended and refined documentation.
Thanks to everyone for input, especially to Carl Meyer, Ted Kaemming and
Adam Vandenberg for patches.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14533 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/settings.txt')
| -rw-r--r-- | docs/ref/settings.txt | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 78b5fd995e..2c338df6c7 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -53,7 +53,7 @@ Default: ``'/media/'`` The URL prefix for admin media -- CSS, JavaScript and images used by the Django administrative interface. Make sure to use a trailing -slash, and to have this be different from the ``MEDIA_URL`` setting +slash, and to have this be different from the :setting:`MEDIA_URL` setting (since the same URL cannot be mapped onto two different sets of files). @@ -1104,8 +1104,12 @@ MEDIA_ROOT Default: ``''`` (Empty string) -Absolute path to the directory that holds media for this installation. -Example: ``"/home/media/media.lawrence.com/"`` See also ``MEDIA_URL``. +Absolute path to the directory that holds media for this installation, used +for :doc:`managing stored files </topics/files>`. + +Example: ``"/home/media/media.lawrence.com/"`` + +See also :setting:`MEDIA_URL`. .. setting:: MEDIA_URL @@ -1114,15 +1118,15 @@ MEDIA_URL Default: ``''`` (Empty string) -URL that handles the media served from ``MEDIA_ROOT``. +URL that handles the media served from :setting:`MEDIA_ROOT`, used +for :doc:`managing stored files </topics/files>`. + Example: ``"http://media.lawrence.com"`` Note that this should have a trailing slash if it has a path component. -Good: ``"http://www.example.com/static/"`` -Bad: ``"http://www.example.com/static"`` - -.. setting:: MIDDLEWARE_CLASSES + * Good: ``"http://www.example.com/static/"`` + * Bad: ``"http://www.example.com/static"`` MESSAGE_LEVEL ------------- @@ -1161,6 +1165,8 @@ Default:: Sets the mapping of message levels to message tags. See the :doc:`messages documentation </ref/contrib/messages>` for more details. +.. setting:: MIDDLEWARE_CLASSES + MIDDLEWARE_CLASSES ------------------ |
