diff --git a/Watcher/Watcher/watcher/settings.py b/Watcher/Watcher/watcher/settings.py index 13d93ef..bcaaa8c 100755 --- a/Watcher/Watcher/watcher/settings.py +++ b/Watcher/Watcher/watcher/settings.py @@ -151,12 +151,10 @@ } REST_KNOX = { - 'SECURE_HASH_ALGORITHM': 'hashlib.sha3_512', + 'SECURE_HASH_ALGORITHM': 'cryptography.hazmat.primitives.hashes.SHA3_512', 'TOKEN_TTL': timedelta(hours=10), } -KNOX_TOKEN_MODEL = 'knox.AuthToken' - MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware',