From d988adbdaf57bb5e82823a416f92fa6995d59589 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 14 Jun 2021 20:48:44 +0300 Subject: Move RQ_QUEUES to local_settings --- settings.py | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/settings.py b/settings.py index b83cb78..9b25c34 100644 --- a/settings.py +++ b/settings.py @@ -221,20 +221,11 @@ WKHTMLTOPDF_CMD_OPTIONS = { 'page-size': 'a4' } +from local_settings import * + CACHES['comptia'] = { - 'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache', - 'LOCATION': '127.0.0.1:11211', - 'TIMEOUT': 60 * 60 * 24, + 'BACKEND': CACHES['default']['BACKEND'], + 'LOCATION': CACHES['default']['LOCATION'], + 'TIMEOUT': 60*60*24, 'KEY_PREFIX': 'comptia_' } - -RQ_QUEUES = { - 'default': { - 'HOST': 'localhost', - 'PORT': 6379, - 'DB': 0, - 'DEFAULT_TIMEOUT': 3600, # 60 minutes - }, -} - -from local_settings import * -- cgit v1.2.3