mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Add support for evennia check. Resolves #1372.
This commit is contained in:
parent
cfa484565c
commit
9837835e9e
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue