Add support for evennia check. Resolves #1372.

This commit is contained in:
Griatch 2017-09-03 11:01:17 +02:00
parent cfa484565c
commit 9837835e9e

View file

@ -1310,9 +1310,9 @@ def main():
check_db = False
if option in ('runserver', 'testserver'):
print(WARNING_RUNSERVER)
if option == "shell":
# to use the shell we need to initialize it first,
# and this only works if the database is set up
if option in ("shell", "check"):
# some django commands requires the database to exist,
# or evennia._init to have run before they work right.
check_db = True
if option == "test":
global TEST_MODE