Skip to content

Commit f3456b3

Browse files
authored
Allow ./manage.py without args (#130)
1 parent 20dab41 commit f3456b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
88

9-
IN_TEST = sys.argv[1] == "test"
9+
IN_TEST = len(sys.argv) > 1 and sys.argv[1] == "test"
1010

1111
ALLOWED_HOSTS = ["*"]
1212

0 commit comments

Comments
 (0)