mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +00:00
Fixed #25356 -- Removed default_app_config from startapp template.
Also discouraged its use outside the intended use case.
This commit is contained in:
parent
29d52583e7
commit
862de0b254
6 changed files with 8 additions and 12 deletions
|
@ -599,10 +599,6 @@ class DjangoAdminSettingsDirectory(AdminScriptTestCase):
|
|||
content = f.read()
|
||||
self.assertIn("class SettingsTestConfig(AppConfig)", content)
|
||||
self.assertIn("name = 'settings_test'", content)
|
||||
with open(os.path.join(app_path, '__init__.py'), 'r') as f:
|
||||
content = f.read()
|
||||
expected_content = "default_app_config = 'settings_test.apps.SettingsTestConfig'"
|
||||
self.assertIn(expected_content, content)
|
||||
if not PY3:
|
||||
with open(os.path.join(app_path, 'models.py'), 'r') as fp:
|
||||
content = fp.read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue