From 3ecb79d1d34c5f2db8ede5ff232cb30e06887364 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 22 Nov 2022 23:42:52 +0200 Subject: [PATCH] Revert "stop spamming the console" This reverts commit 3cd173439023dc02b51212f156c24e658e6d6622. --- files/helpers/const.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/helpers/const.py b/files/helpers/const.py index 0425f1e24..d0a5baa4d 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -1692,3 +1692,7 @@ if SITE_NAME == 'rDrama': IMAGE_FORMATS = ['png','gif','jpg','jpeg','webp'] VIDEO_FORMATS = ['mp4','webm','mov','avi','mkv','flv','m4v','3gp'] AUDIO_FORMATS = ['mp3','wav','ogg','aac','m4a','flac'] + +if not is_localhost and SECRET_KEY == DEFAULT_CONFIG_VALUE: + from warnings import warn + warn("Secret key is the default value! Please change it to a secure random number. Thanks <3", RuntimeWarning)