mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #16050 -- BACKWARDS-INCOMPATIBLE CHANGE: Moved static files of the admin to conventional file system location.
This also removes the need for ADMIN_MEDIA_PREFIX and replaces it with the convention to find admin's static files at STATIC_URL + 'admin/'. Thanks to Jacob for the review and general help. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -106,11 +106,13 @@ def setup(verbosity, test_labels):
|
||||
'LOGIN_URL': settings.LOGIN_URL,
|
||||
'LANGUAGE_CODE': settings.LANGUAGE_CODE,
|
||||
'MIDDLEWARE_CLASSES': settings.MIDDLEWARE_CLASSES,
|
||||
'STATIC_URL': settings.STATIC_URL,
|
||||
}
|
||||
|
||||
# Redirect some settings for the duration of these tests.
|
||||
settings.INSTALLED_APPS = ALWAYS_INSTALLED_APPS
|
||||
settings.ROOT_URLCONF = 'urls'
|
||||
settings.STATIC_URL = '/static/'
|
||||
settings.TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), TEST_TEMPLATE_DIR),)
|
||||
settings.USE_I18N = True
|
||||
settings.LANGUAGE_CODE = 'en'
|
||||
|
||||
Reference in New Issue
Block a user