Ticket #2891: 2891-backwards-incompatible.patch
File 2891-backwards-incompatible.patch, 3.4 KB (added by , 17 years ago) |
---|
-
django/conf/global_settings.py
157 157 158 158 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a 159 159 # trailing slash. 160 # Examples: "http://foo.com/ media/", "/media/".161 ADMIN_MEDIA_PREFIX = '/ media/'160 # Examples: "http://foo.com/admin_media/", "/admin_media/". 161 ADMIN_MEDIA_PREFIX = '/admin_media/' 162 162 163 163 # Default e-mail address to use for various automated correspondence from 164 164 # the site managers. -
django/conf/project_template/settings.py
44 44 45 45 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a 46 46 # trailing slash. 47 # Examples: "http://foo.com/ media/", "/media/".48 ADMIN_MEDIA_PREFIX = '/ media/'47 # Examples: "http://foo.com/admin_media/", "/admin_media/". 48 ADMIN_MEDIA_PREFIX = '/admin_media/' 49 49 50 50 # Make this unique, and don't share it with anybody. 51 51 SECRET_KEY = '' -
django/contrib/admin/templatetags/admin_modify.py
28 28 29 29 could return:: 30 30 31 <script type="text/javascript" src="/ media/admin/js/calendar.js">31 <script type="text/javascript" src="/admin_media/admin/js/calendar.js"> 32 32 """ 33 33 if not absolute_url_re.match(script_path): 34 34 script_path = '%s%s' % (settings.ADMIN_MEDIA_PREFIX, script_path) -
docs/fastcgi.txt
195 195 directive, as explained in the previous section). 196 196 197 197 In this example, we tell Apache to use FastCGI to handle any request that 198 doesn't represent a file on the filesystem and doesn't start with ``/media/``. 199 This is probably the most common case, if you're using Django's admin site:: 198 doesn't represent a file on the filesystem and doesn't start with 199 ``/admin_media/``. This is probably the most common case, if you're using 200 Django's admin site:: 200 201 201 202 <VirtualHost 12.34.56.78> 202 203 ServerName example.com 203 204 DocumentRoot /home/user/public_html 204 Alias / media /home/user/python/django/contrib/admin/media205 Alias /admin_media /home/user/python/django/contrib/admin/media 205 206 RewriteEngine On 206 207 RewriteRule ^/(media.*)$ /$1 [QSA,L,PT] 207 208 RewriteCond %{REQUEST_FILENAME} !-f … … 236 237 ), 237 238 ) 238 239 alias.url = ( 239 "/ media/" => "/home/user/django/contrib/admin/media/",240 "/admin_media/" => "/home/user/django/contrib/admin/media/", 240 241 ) 241 242 242 243 url.rewrite-once = ( -
docs/settings.txt
183 183 ADMIN_MEDIA_PREFIX 184 184 ------------------ 185 185 186 Default: ``'/ media/'``186 Default: ``'/admin_media/'`` 187 187 188 188 The URL prefix for admin media -- CSS, JavaScript and images. Make sure to use 189 189 a trailing slash.