From b4043dc087abf54d2b67676c543bb221f7477c6d Mon Sep 17 00:00:00 2001 From: Jonatron Date: Tue, 24 Dec 2024 10:56:49 +0000 Subject: [PATCH] Allow ./manage.py without args --- tests/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/settings.py b/tests/settings.py index 2a1167b..5d846a7 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -6,7 +6,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) -IN_TEST = sys.argv[1] == "test" +IN_TEST = len(sys.argv) > 1 and sys.argv[1] == "test" ALLOWED_HOSTS = ["*"]