mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #28795 -- Removed 'not in' checks and used dict.setdefault().
This commit is contained in:
committed by
Tim Graham
parent
a2ec1e6b2d
commit
23bf4ad87f
@@ -455,8 +455,7 @@ if __name__ == "__main__":
|
||||
if options.settings:
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = options.settings
|
||||
else:
|
||||
if "DJANGO_SETTINGS_MODULE" not in os.environ:
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'test_sqlite'
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_sqlite')
|
||||
options.settings = os.environ['DJANGO_SETTINGS_MODULE']
|
||||
|
||||
if options.selenium:
|
||||
|
||||
Reference in New Issue
Block a user