﻿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
26224	Tutorial Part 5 (Testing) Generates app_label error	Eric Livingston	nobody	"I have been walking through the Tutorial for Django, and upon reaching part 5 and introducing the first test case, I get this output (the directory I put the tutorial in is called 'demo')

`RuntimeError: Model class demo.polls.models.Question doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.`

I tried adding a Meta section to the Question model, after doing some poking around in the docs.

{{{
#!python
class Question(models.Model):
    question_text = models.CharField(max_length=200)
    pub_date = models.DateTimeField('date published')
    
    class Meta:
        app_label='polls'
}}}

But then I get this:

`RuntimeError: Conflicting 'question' models in application 'polls': <class 'polls.models.Question'> and <class 'demo.polls.models.Question'>.`"	Bug	closed	Documentation	1.9	Normal	worksforme			Unreviewed	0	0	0	0	0	0
