feat: add debug command that prints settings

This commit is contained in:
2025-11-03 18:22:11 +01:00
parent 151ce0d88e
commit 32c8fc88cf

View File

@@ -0,0 +1,13 @@
from django.core.management import BaseCommand
from notfellchen import settings
class Command(BaseCommand):
help = 'Print the current settings'
def handle(self, *args, **options):
for key in settings.__dir__():
if key.startswith("_") or key == "SECRET_KEY":
continue
print(f"{key} = {getattr(settings, key)}")