Ticket #2600: SERVE_DEFAULT_ADMIN_MEDIA.diff
File SERVE_DEFAULT_ADMIN_MEDIA.diff, 1.9 KB (added by , 18 years ago) |
---|
-
django/conf/project_template/settings.py
40 40 # Examples: "http://foo.com/media/", "/media/". 41 41 ADMIN_MEDIA_PREFIX = '/media/' 42 42 43 # Whether the django development server should serve admin media from the 44 # contrib/admin/media/ directory 45 SERVE_DEFAULT_ADMIN_MEDIA = True 46 43 47 # Make this unique, and don't share it with anybody. 44 48 SECRET_KEY = '' 45 49 -
django/conf/global_settings.py
142 142 # Examples: "http://foo.com/media/", "/media/". 143 143 ADMIN_MEDIA_PREFIX = '/media/' 144 144 145 # Whether the django development server should serve admin media from the 146 # contrib/admin/media/ directory 147 SERVE_DEFAULT_ADMIN_MEDIA = True 148 145 149 # Default e-mail address to use for various automated correspondence from 146 150 # the site managers. 147 151 DEFAULT_FROM_EMAIL = 'webmaster@localhost' -
django/core/management.py
1053 1053 print "Development server is running at http://%s:%s/" % (addr, port) 1054 1054 print "Quit the server with %s." % quit_command 1055 1055 try: 1056 run(addr, int(port), AdminMediaHandler(WSGIHandler())) 1056 handler = WSGIHandler() 1057 if settings.SERVE_DEFAULT_ADMIN_MEDIA: 1058 handler = AdminMediaHandler(handler) 1059 run(addr, int(port), handler) 1057 1060 except WSGIServerException, e: 1058 1061 # Use helpful error messages instead of ugly tracebacks. 1059 1062 ERRORS = {