diff --git a/api/src/reportcreator_api/users/management/commands/createorupdateuser.py b/api/src/reportcreator_api/users/management/commands/createorupdateuser.py index 25538adc..8b4eeb68 100644 --- a/api/src/reportcreator_api/users/management/commands/createorupdateuser.py +++ b/api/src/reportcreator_api/users/management/commands/createorupdateuser.py @@ -29,6 +29,7 @@ def add_arguments(self, parser): ) def handle(self, username, password, is_superuser, is_system_user, is_initial_saas_user, *args, **kwargs): + username = username or os.environ.get('DJANGO_SUPERUSER_USERNAME') password = password or os.environ.get('DJANGO_SUPERUSER_PASSWORD') if not password or not username: