﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10430	"Django fails to import cmemcached (with a ""d"" on the end)"	bstow01@…	nobody	"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"")
}}}
 "		closed	Core (Cache system)	1.0		wontfix	memcache		Unreviewed	0	0	0	0	0	0
