在django 1.3中,我们将缓存配置为:
CACHES = {
'default': {
'BACKEND': '<project_name>.lib.caches.memcache_cache.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
迁移到1.6后,我们收到错误:
django.core.cache.backends.base.InvalidCacheBackendError: Could not find backend '<project>.lib.caches.memcache_cache.MemcachedCache': Error importing module <project>.lib.caches.memcache_cache: "No module named <project>.lib.caches.memcache_cache"
任何快速解决方案?如何在1.6中定义项目的根?