Ticket #2891: 2891.2.patch
File 2891.2.patch, 3.6 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/". 160 # Examples: "http://foo.com/admin_media/", "/admin_media/". 161 # The default in project_template/settings.py is now '/admin_media/', but the 162 # default here has been left as '/media/' for backwards compatibility. 161 163 ADMIN_MEDIA_PREFIX = '/media/' 162 164 163 165 # Default e-mail address to use for various automated correspondence from -
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
188 188 The URL prefix for admin media -- CSS, JavaScript and images. Make sure to use 189 189 a trailing slash. 190 190 191 Note that the default in a ``settings.py`` file created with 192 `django-admin.py startproject`_ is ``'/admin_media/'`` (the fall-back default 193 remains ``'/media/'`` for backwards compatibility). 194 195 .. _django-admin.py startproject: ../django-admin/#startproject-projectname 196 191 197 ADMINS 192 198 ------ 193 199