Use dummy cache in dev mode
This commit is contained in:
parent
f8a963dd36
commit
7365eeacc8
1 changed files with 12 additions and 5 deletions
|
@ -107,12 +107,19 @@ if fail:
|
|||
|
||||
ADMIN_USERNAMES = []
|
||||
|
||||
CACHES = {
|
||||
if DEV_MODE and DEV_MODE == "LAPTOP":
|
||||
CACHES = {
|
||||
'default': {
|
||||
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
|
||||
}
|
||||
}
|
||||
else:
|
||||
CACHES = {
|
||||
'default': {
|
||||
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
||||
'LOCATION': 'unique-snowflake',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '*']
|
||||
|
|
Loading…
Reference in a new issue