diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/conf/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/conf/__init__.py b/django/conf/__init__.py index c81456dd92..0d8f4b6b83 100644 --- a/django/conf/__init__.py +++ b/django/conf/__init__.py @@ -69,8 +69,7 @@ class BaseSettings(object): """ def __setattr__(self, name, value): if name in ("MEDIA_URL", "STATIC_URL") and value and not value.endswith('/'): - warnings.warn("If set, %s must end with a slash" % name, - DeprecationWarning) + raise ImproperlyConfigured("If set, %s must end with a slash" % name) elif name == "ADMIN_MEDIA_PREFIX": warnings.warn("The ADMIN_MEDIA_PREFIX setting has been removed; " "use STATIC_URL instead.", DeprecationWarning) |
