mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #18042 -- Advanced deprecation warnings.
Thanks Ramiro for the patch.
This commit is contained in:
2
django/core/cache/backends/memcached.py
vendored
2
django/core/cache/backends/memcached.py
vendored
@@ -130,7 +130,7 @@ class CacheClass(BaseMemcachedCache):
|
||||
import warnings
|
||||
warnings.warn(
|
||||
"memcached.CacheClass has been split into memcached.MemcachedCache and memcached.PyLibMCCache. Please update your cache backend setting.",
|
||||
PendingDeprecationWarning
|
||||
DeprecationWarning
|
||||
)
|
||||
try:
|
||||
import memcache
|
||||
|
||||
@@ -395,7 +395,7 @@ def setup_environ(settings_mod, original_settings_path=None):
|
||||
"you likely need to update your 'manage.py'; "
|
||||
"please see the Django 1.4 release notes "
|
||||
"(https://docs.djangoproject.com/en/dev/releases/1.4/).",
|
||||
PendingDeprecationWarning)
|
||||
DeprecationWarning)
|
||||
|
||||
# Add this project to sys.path so that it's importable in the conventional
|
||||
# way. For example, if this file (manage.py) lives in a directory
|
||||
@@ -451,7 +451,7 @@ def execute_manager(settings_mod, argv=None):
|
||||
"you likely need to update your 'manage.py'; "
|
||||
"please see the Django 1.4 release notes "
|
||||
"(https://docs.djangoproject.com/en/dev/releases/1.4/).",
|
||||
PendingDeprecationWarning)
|
||||
DeprecationWarning)
|
||||
|
||||
setup_environ(settings_mod)
|
||||
utility = ManagementUtility(argv)
|
||||
|
||||
Reference in New Issue
Block a user