﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31897	Example in `Using settings in Python code` documentation is misleading	Garrett Edel	nobody	"The current example (https://docs.djangoproject.com/en/3.1/topics/settings/#using-settings-in-python-code) for how to use from `django.conf import settings` includes the example of using `settings.DEBUG`.

The example is fine, but if a user tries to replicate this in their test scripts `settings.DEBUG` will always return `False` as intended in the design of Django tests (https://docs.djangoproject.com/en/3.1/topics/testing/overview/#other-test-conditions). This PR simply adds an admonition in the docs to warn users about this and offer an alternative with override_settings().

PR here: https://github.com/django/django/pull/13308"	Cleanup/optimization	closed	Documentation	3.1	Normal	invalid	settings,documentation		Unreviewed	0	0	0	0	0	0
