From 98d3a0933806df70fc49f02e789c34b2b684421b Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 2 Apr 2011 08:32:21 +0000 Subject: [PATCH] Advanced deprecation for MEDIA_URL and STATIC_URL without a trailing slash. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15969 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/conf/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/conf/__init__.py b/django/conf/__init__.py index f2012a6400..a3e2f03234 100644 --- a/django/conf/__init__.py +++ b/django/conf/__init__.py @@ -69,7 +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, - PendingDeprecationWarning) + DeprecationWarning) object.__setattr__(self, name, value)