We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20dab41 commit f3456b3Copy full SHA for f3456b3
tests/settings.py
@@ -6,7 +6,7 @@
6
7
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
8
9
-IN_TEST = sys.argv[1] == "test"
+IN_TEST = len(sys.argv) > 1 and sys.argv[1] == "test"
10
11
ALLOWED_HOSTS = ["*"]
12
0 commit comments