diff options
author | Oleg Kainov <kainov.oleg@gmail.com> | 2018-12-05 16:15:33 -0800 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-09-25 19:47:03 +0200 |
commit | c574bec0929cd2527268c96a492d25223a9fd576 (patch) | |
tree | 80c642eca0ca64d63d1596bc237465685c92ce5c /tests/file_storage | |
parent | 580e644f24f1c5ae5b94784fb73a9953a178fd26 (diff) | |
download | django-c574bec0929cd2527268c96a492d25223a9fd576.tar.gz |
Fixed #25598 -- Added SCRIPT_NAME prefix to STATIC_URL and MEDIA_URL set to relative paths.
Thanks Florian Apolloner for reviews.
Co-authored-by: Joel Dunham <Joel.Dunham@technicalsafetybc.ca>
Diffstat (limited to 'tests/file_storage')
-rw-r--r-- | tests/file_storage/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py index 1c4176014c..1f7fd94b5a 100644 --- a/tests/file_storage/tests.py +++ b/tests/file_storage/tests.py @@ -521,7 +521,7 @@ class FileStorageTests(SimpleTestCase): defaults_storage = self.storage_class() settings = { 'MEDIA_ROOT': 'overridden_media_root', - 'MEDIA_URL': 'overridden_media_url/', + 'MEDIA_URL': '/overridden_media_url/', 'FILE_UPLOAD_PERMISSIONS': 0o333, 'FILE_UPLOAD_DIRECTORY_PERMISSIONS': 0o333, } |