From 1cbe91b1f4e4ef126dfce3ecd56016f33e7ad836 Mon Sep 17 00:00:00 2001 From: winkidney Date: Sun, 8 Dec 2019 16:37:49 +0800 Subject: [PATCH] Fix: Fix django development settingns again --- manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage.py b/manage.py index 21105bd..0b8c3dc 100644 --- a/manage.py +++ b/manage.py @@ -3,7 +3,7 @@ import os import sys if __name__ == "__main__": - if "--settings" not in sys.argv: + if not any(arg.startswith("--settings") for arg in sys.argv): os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pinry.settings.development") from django.core.management import execute_from_command_line if 'test' in sys.argv: