|
@@ -6,6 +6,8 @@ import dj_database_url
|
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
from dotenv import load_dotenv
|
|
|
|
|
|
+TRUTHY = ("true", "1", "t")
|
|
|
+
|
|
|
PROJECT_ROOT = Path(__file__).resolve().parent
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
|
|
sys.path.insert(0, os.path.join(PROJECT_ROOT, 'apps'))
|
|
@@ -31,7 +33,7 @@ SECRET_KEY = os.getenv("EMUS_SECRET_KEY", "not-a-secret-234lkjasdflj132")
|
|
|
|
|
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
|
-DEBUG = os.getenv("EMUS_DEBUG", False)
|
|
|
+DEBUG = os.getenv("VROBBLER_DEBUG", "false").lower() in TRUTHY
|
|
|
|
|
|
TESTING = len(sys.argv) > 1 and sys.argv[1] == "test"
|
|
|
|