#10430: Django fails to import cmemcached (with a "d" on the end)
-------------------------------+--------------------------------------------
Reporter: [email protected] | Owner: nobody
Status: new | Milestone:
Component: Cache system | Version: 1.0
Keywords: memcache | Stage: Unreviewed
Has_patch: 0 |
-------------------------------+--------------------------------------------
Some python wrappers for libmemcached specify the package name
"cmemcache'''d'''" instead of "cmemcache." (ex. [http://code.google.com/p
/python-libmemcached/]) Currently django only tries to import
"cmemcache" and "memcache" which results in an error if using a wrapper
with a package name of "cmemcache'''d'''"
As a suggestion, In django/core/cache/backends/memcached.py, the import
could look like the following to resolve this...
{{{
try:
import cmemcache as memcache
except ImportError:
try:
import cmemcached as memcache
except ImportError:
try:
import memcache
except:
raise InvalidCacheBackendError("Memcached cache backend
requires either the 'memcache' or 'cmemcache' library")
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/10430>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---