﻿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
29768	Confusing error when AppConfig subclass's name is misspelled	Marten Kenbeek	Marten Kenbeek	"When you misspell the name of the AppConfig subclass in `INSTALLED_APPS`, it currently retriggers the exception for importing the class as a module[1]. This disregards that the mod_path (all but the last part of the import string) is importable and defines an AppConfig subclass.

In my case, I had a config at `courses.apps.CoursesConfig`, and included `'courses.apps.CourseConfig'` (no 's' in Courses) in `INSTALLED_APPS`. 

I think we can provide a better error message when the mod_path (`courses.apps`) is importable and has `AppConfig` subclasses, something like ""'courses.apps' does not have a class 'CourseConfig', did you mean 'CoursesConfig'?"".


[1] https://github.com/django/django/blob/0c20850774e1ba2f408745916e2279592999ee98/django/apps/config.py#L123"	Cleanup/optimization	closed	Error reporting	dev	Normal	fixed			Accepted	1	0	0	0	1	0
