mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
Createsuperuser pre-start message: even more explicit
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user