﻿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
24287	A model outside an app causes inane error	jMyles	nobody	"To reproduce:

Create a models.py in the root of a project (ie, next to manage.py).  Create a class in it that inherits from django.db.models.Model.

This causes IndexError to be raised in the __new__ because package_components will be only ['models'], without the app name, ie, this line:

kwargs = {""app_label"": package_components[app_label_index]}

Of course, the proper thing to do is to create an app, but new users may not realize this and, given this error, may not know on what topic to seek assistance."	Cleanup/optimization	closed	Database layer (models, ORM)	dev	Normal	fixed			Accepted	1	0	0	0	0	1
