Add evennia-launcher support for createsuperuser

This commit is contained in:
Griatch 2020-05-16 10:30:01 +02:00
parent dfea32ec82
commit f989f3514b

View file

@ -2262,7 +2262,7 @@ def main():
if option in ("makemessages", "compilemessages"): if option in ("makemessages", "compilemessages"):
# some commands don't require the presence of a game directory to work # some commands don't require the presence of a game directory to work
need_gamedir = False need_gamedir = False
if option in ("shell", "check", "makemigrations"): if option in ("shell", "check", "makemigrations", "createsuperuser"):
# some django commands requires the database to exist, # some django commands requires the database to exist,
# or evennia._init to have run before they work right. # or evennia._init to have run before they work right.
check_db = True check_db = True