feat: add debug command that prints settings
This commit is contained in:
13
src/fellchensammlung/management/commands/print-settings.py
Normal file
13
src/fellchensammlung/management/commands/print-settings.py
Normal 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)}")
|
||||
Reference in New Issue
Block a user