1. Germano Gabbianelli
  2. django

Commits

luke...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed c8000aa

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

  • Participants
  • Parent commits 04689a5
  • Branches default

Comments (0)

Files changed (1)

File docs/ref/settings.txt

View file
 ADMIN_MEDIA_PREFIX
 ------------------
 
-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 :setting:`MEDIA_URL` setting
-(since the same URL cannot be mapped onto two different sets of
-files).
+Default: ``'/static/admin/'``
+
+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 :setting:``MEDIA_URL`` setting (since the same URL cannot be
+mapped onto two different sets of files). For integration with :doc:`staticfiles
+</ref/contrib/staticfiles>`, this should be the same as
+:setting:`STATICFILES_URL` followed by ``'admin/'``.
 
 .. setting:: ADMINS