mirror of
https://github.com/django/django.git
synced 2025-09-11 13:06:29 +00:00
[2.1.x] Reverted "Fixed #29324 -- Made Settings raise ImproperlyConfigured if SECRET_KEY is accessed and not set."
This reverts commitb3cffde555
due to a regression and performance concerns. Backport of5cc81cd9eb
from master
This commit is contained in:
parent
39e61669e0
commit
483f5d6c4f
5 changed files with 13 additions and 40 deletions
|
@ -2213,11 +2213,7 @@ class DiffSettings(AdminScriptTestCase):
|
|||
out, err = self.run_manage(args)
|
||||
self.assertNoOutput(err)
|
||||
self.assertOutput(out, "+ FOO = 'bar'")
|
||||
self.assertOutput(out, "- INSTALLED_APPS = []")
|
||||
self.assertOutput(
|
||||
out,
|
||||
"+ INSTALLED_APPS = ['django.contrib.auth', 'django.contrib.contenttypes', 'admin_scripts']"
|
||||
)
|
||||
self.assertOutput(out, "- SECRET_KEY = ''")
|
||||
self.assertOutput(out, "+ SECRET_KEY = 'django_tests_secret_key'")
|
||||
self.assertNotInOutput(out, " APPEND_SLASH = True")
|
||||
|
||||
|
@ -2233,12 +2229,7 @@ class DiffSettings(AdminScriptTestCase):
|
|||
self.assertNoOutput(err)
|
||||
self.assertOutput(out, " APPEND_SLASH = True")
|
||||
self.assertOutput(out, "+ FOO = 'bar'")
|
||||
self.assertOutput(out, "- INSTALLED_APPS = []")
|
||||
self.assertOutput(
|
||||
out,
|
||||
"+ INSTALLED_APPS = ['django.contrib.auth', 'django.contrib.contenttypes', 'admin_scripts']"
|
||||
)
|
||||
self.assertOutput(out, "+ SECRET_KEY = 'django_tests_secret_key'")
|
||||
self.assertOutput(out, "- SECRET_KEY = ''")
|
||||
|
||||
|
||||
class Dumpdata(AdminScriptTestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue