Commit b7d75fdc authored by guglielmo's avatar guglielmo

constance engine changed to redis, to avoid issues with db connections closing

parent 70e1c84d
......@@ -198,8 +198,7 @@ LOCAL_APPS = (
"constance.backends.database",
# task management
"taskmanager",
"django_uwsgi",
# "django_uwsgi",
)
# See: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
......@@ -291,13 +290,13 @@ CONSTANCE_CONFIG = {
'SMTP_PASSWORD': (env("EMAIL_HOST_PASS", default=""), "Password for the SMTP host"),
'EMAIL_SUBJECT_PREFIX': (env("EMAIL_SUBJECT_PREFIX", default="[servizio verificafonti] "), "Email subject prefix"),
'EMAIL_FROM': (env("DEFAULT_FROM_EMAIL", default="noreply@openpolis.it"), "From email address for notifications"),
'REQUESTS_MAX_TIMEOUT': (env("RQEUSTS_MAX_TIMEOUT", default=10), "Max timeout for requests in seconds", int),
'REQUESTS_MAX_TIMEOUT': (env("REQUESTS_MAX_TIMEOUT", default=10), "Max timeout for requests in seconds", int),
'REQUESTS_UA': (env("REQUESTS_UA", default=""), "User agent in requests"),
}
CONSTANCE_IGNORE_ADMIN_VERSION_CHECK = True
CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
CONSTANCE_BACKEND = 'constance.backends.redisd.RedisBackend'
# END CONSTANCE (LIVE SETTINGS) CONFIGURATION
# TASK_MANAGER CONFIGURATION
......
......@@ -12,13 +12,13 @@ django-object-actions
django-admin-row-actions
# live settings
django-constance[database]
django-constance[redis]
# slack notifications
slackclient==2.0.0
# App requirements
psycopg2-binary==2.7.5
psycopg2-binary==2.8.3
# django-uwsgi-taskmanager
-e git+https://gitlab.depp.it/openpolis/op-task-manager-project.git@master#egg=django-uwsgi-taskmanager
......@@ -31,4 +31,4 @@ lxml
ipython==7.0.1
selenium
coverage
\ No newline at end of file
coverage
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment