mirror of
https://github.com/django/django.git
synced 2024-12-25 02:26:12 +00:00
Fixed #12427 -- Started the deprecation path for cmemcache support. Thanks to otherjacob for his work on this issue.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12754 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
29cb5124a6
commit
2287426ba6
5
django/core/cache/backends/memcached.py
vendored
5
django/core/cache/backends/memcached.py
vendored
@ -7,6 +7,11 @@ from django.utils.encoding import smart_unicode, smart_str
|
||||
|
||||
try:
|
||||
import cmemcache as memcache
|
||||
import warnings
|
||||
warnings.warn(
|
||||
"Support for the 'cmemcache' library has been deprecated. Please use python-memcached instead.",
|
||||
PendingDeprecationWarning
|
||||
)
|
||||
except ImportError:
|
||||
try:
|
||||
import memcache
|
||||
|
Loading…
Reference in New Issue
Block a user