diff --git a/src/fellchensammlung/management/commands/print-settings.py b/src/fellchensammlung/management/commands/print-settings.py new file mode 100644 index 0000000..f343510 --- /dev/null +++ b/src/fellchensammlung/management/commands/print-settings.py @@ -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)}")