Skip to content

Commit dacdb0e

Browse files
committed
normalize axes cache
1 parent 599a2fa commit dacdb0e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/fluentdemo/settings/defaults.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@
225225

226226
CACHES = {
227227
'default': env.cache(default='redis://127.0.0.1:6379/1?TIMEOUT=86400&KEY_PREFIX=fluentdemo'),
228+
'axes': env.cache(default='dummycache://'),
228229
}
229230

230231
DATABASES = {
@@ -290,6 +291,7 @@
290291
ADMIN_TOOLS_APP_INDEX_DASHBOARD = 'fluent_dashboard.dashboard.FluentAppIndexDashboard'
291292
ADMIN_TOOLS_MENU = 'fluent_dashboard.menu.FluentMenu'
292293

294+
AXES_CACHE = 'axes'
293295
AXES_LOGIN_FAILURE_LIMIT = 6
294296
AXES_COOLOFF_TIME = 1 # hours
295297
AXES_IP_WHITELIST = INTERNAL_IPS

src/fluentdemo/settings/docker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# Safe defaults to allow startups without many settings.
66
CACHES['default'] = env.cache(default='locmemcache://')
77
CACHES['axes'] = env.cache(default='dummycache://')
8-
AXES_CACHE = 'axes'
98

109
# Need to different way to get the release, since there is no .git folder to read.
1110
try:

0 commit comments

Comments
 (0)