From 1feb287ca021c1b5578f0664015ee7a13edfb936 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 28 Dec 2021 11:13:30 +0100 Subject: [PATCH] SECRET_KEY in config --- ereuse_devicehub/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ereuse_devicehub/config.py b/ereuse_devicehub/config.py index 01a98292..e1e5cf12 100644 --- a/ereuse_devicehub/config.py +++ b/ereuse_devicehub/config.py @@ -1,3 +1,4 @@ +import os from distutils.version import StrictVersion from itertools import chain from typing import Set @@ -77,3 +78,4 @@ class DevicehubConfig(Config): """Definition of path where save the documents of customers""" PATH_DOCUMENTS_STORAGE = config('PATH_DOCUMENTS_STORAGE', '/tmp/') JWT_PASS = config('JWT_PASS', '') + SECRET_KEY = os.urandom(32)