﻿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
29236	diffsettings raises misleading exception message if using settings.configure()	Keryn Knight	Hasan Ramezani	"If, rather than using the env var `DJANGO_SETTINGS_MODULE` one uses `settings.configure(...)`, attempting to call diffsettings can fail because it calls `settings._setup()` unconditionally, with the exception
{{{
django.core.exceptions.ImproperlyConfigured: Requested settings, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
}}}
were the call instead:
{{{
if not settings.configured:
    settings._setup()
}}}
things would work correctly."	Bug	closed	Core (Management commands)	dev	Normal	fixed		Keryn Knight	Accepted	1	0	0	0	1	0
