Createsuperuser pre-start message: even more explicit

This commit is contained in:
Klaas van Schelven
2025-03-07 10:47:18 +01:00
parent b560628c19
commit 832539a197

View File

@@ -22,7 +22,10 @@ class Command(BaseCommand):
username, password = os.getenv("CREATE_SUPERUSER").split(":")
if User.objects.all().exists():
print("Superuser not created: user(s) already exist.")
print(
"Superuser not created: _any_ user(s) already exist(s). "
"CREATE_SUPERUSER only works for the initial user.")
return
User.objects.create_superuser(username=username, password=password)