在 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中如何定义项目的根?