mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 08:35:41 +01:00
Fix: Fix django development settingns again
This commit is contained in:
committed by
Isaac Bythewood
parent
8e8b185acf
commit
1cbe91b1f4
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user