Remove CONSERVANCY_SECRET_KEY

Use SECRET_KEY instead to minimise use of non-standard settings.
This commit is contained in:
Ben Sturmfels 2023-10-26 13:09:50 +11:00
parent 19be27702a
commit 813446c568
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -9,7 +9,7 @@ class ParameterValidator:
self.given_hash = given_hash_or_params
else:
self.given_hash = given_hash_or_params.get(params_hash_key)
seed = getattr(settings, 'CONSERVANCY_SECRET_KEY', '').encode('utf-8')
seed = settings.SECRET_KEY.encode('utf-8')
self.hasher = hashlib.sha256(seed)
if isinstance(self.given_hash, str):
self.hash_type = type(self.given_hash)