mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Refs #32394 -- Changed STATIC_URL/MEDIA_URL to relative paths in tests and docs where appropriate.
This commit is contained in:
committed by
Mariusz Felisiak
parent
9d05add447
commit
50a5f8840f
@@ -5,7 +5,7 @@ from django.test import SimpleTestCase, override_settings
|
||||
|
||||
class CheckSettingsTests(SimpleTestCase):
|
||||
|
||||
@override_settings(DEBUG=True, MEDIA_URL='/static/media/', STATIC_URL='/static/',)
|
||||
@override_settings(DEBUG=True, MEDIA_URL='static/media/', STATIC_URL='static/')
|
||||
def test_media_url_in_static_url(self):
|
||||
msg = "runserver can't serve media if MEDIA_URL is within STATIC_URL."
|
||||
with self.assertRaisesMessage(ImproperlyConfigured, msg):
|
||||
|
||||
Reference in New Issue
Block a user