SECRET_KEY in config

This commit is contained in:
Cayo Puigdefabregas 2021-12-28 11:13:30 +01:00
parent 338afcc556
commit 1feb287ca0

View file

@ -1,3 +1,4 @@
import os
from distutils.version import StrictVersion from distutils.version import StrictVersion
from itertools import chain from itertools import chain
from typing import Set from typing import Set
@ -77,3 +78,4 @@ class DevicehubConfig(Config):
"""Definition of path where save the documents of customers""" """Definition of path where save the documents of customers"""
PATH_DOCUMENTS_STORAGE = config('PATH_DOCUMENTS_STORAGE', '/tmp/') PATH_DOCUMENTS_STORAGE = config('PATH_DOCUMENTS_STORAGE', '/tmp/')
JWT_PASS = config('JWT_PASS', '') JWT_PASS = config('JWT_PASS', '')
SECRET_KEY = os.urandom(32)