mirror of
https://github.com/pinry/pinry.git
synced 2026-07-05 08:08:03 +02:00
Fix: Settings should override default settings in manage.py
This commit is contained in:
committed by
Isaac Bythewood
parent
1b10f0b899
commit
0aa0f64904
@@ -3,8 +3,8 @@ import os
|
||||
import sys
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pinry.settings.development")
|
||||
|
||||
if "--settings" not 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:
|
||||
from django.conf import settings
|
||||
|
||||
Reference in New Issue
Block a user