Django

Code

Ticket #2891: admin_media.patch

File admin_media.patch, 1.2 kB (added by SmileyChris, 3 years ago)

with docs

  • django/conf/project_template/settings.py

    old new  
    3939MEDIA_ROOT = '' 
    4040 
    4141# URL that handles the media served from MEDIA_ROOT. 
    42 # Example: "http://media.lawrence.com
     42# Examples: "http://media.lawrence.com", "/media/
    4343MEDIA_URL = '' 
    4444 
    4545# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a 
    4646# trailing slash. 
    47 # Examples: "http://foo.com/media/", "/media/". 
    48 ADMIN_MEDIA_PREFIX = '/media/' 
     47# Examples: "http://foo.com/admin_media/", "/admin_media/". 
     48ADMIN_MEDIA_PREFIX = '/admin_media/' 
    4949 
    5050# Make this unique, and don't share it with anybody. 
    5151SECRET_KEY = '' 
  • docs/settings.txt

    old new  
    183183ADMIN_MEDIA_PREFIX 
    184184------------------ 
    185185 
    186 Default: ``'/media/'`` 
     186Default: ``'/admin_media/'`` 
    187187 
    188188The URL prefix for admin media -- CSS, JavaScript and images. Make sure to use 
    189189a trailing slash.