【发布时间】:2018-01-05 19:42:26
【问题描述】:
我正在使用 django-rosetta 应用程序,它可以在没有 CACHES 设置的情况下进行开发,但在 prod 上我的设置如下:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
问题是在刺激下它让我长大
django.core.exceptions.ImproperlyConfigured:
You can't use the CacheRosettaStorage if your cache isn't correctly set up,
please double check your Django DATABASES setting and that the cache server is responding
数据库设置很简单
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
【问题讨论】:
标签: python django django-rosetta