Corrected default value for ADMIN_MEDIA_PREFIX in docs, and added info about how it integrates with staticfiles.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14551 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Luke Plant 2010-11-13 03:55:06 +00:00
parent 102d230f94
commit d9ae7c6b37
1 changed files with 7 additions and 6 deletions

View File

@ -49,13 +49,14 @@ models, views and template tags.
ADMIN_MEDIA_PREFIX ADMIN_MEDIA_PREFIX
------------------ ------------------
Default: ``'/media/'`` Default: ``'/static/admin/'``
The URL prefix for admin media -- CSS, JavaScript and images used by The URL prefix for admin media -- CSS, JavaScript and images used by the Django
the Django administrative interface. Make sure to use a trailing administrative interface. Make sure to use a trailing slash, and to have this be
slash, and to have this be different from the :setting:`MEDIA_URL` setting different from the :setting:``MEDIA_URL`` setting (since the same URL cannot be
(since the same URL cannot be mapped onto two different sets of mapped onto two different sets of files). For integration with :doc:`staticfiles
files). </ref/contrib/staticfiles>`, this should be the same as
:setting:`STATICFILES_URL` followed by ``'admin/'``.
.. setting:: ADMINS .. setting:: ADMINS