﻿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
34157	Error on Tutorial 2nd page: mysite/settings.py | Code is incorrect	Johnson Deng	nobody	"In the Database portion of the tutorial: [https://docs.djangoproject.com/en/4.1/intro/tutorial02/#activating-models], The included code to copy produces an error. 
""polls.apps.PollsConfig"" at the top of the list does not work and returns and error. But when ""polls.apps.PollsConfig"" is moved to the bottom of the list, the makemigration polls command works as intended.

Correct code for users to copy:
{{{
INSTALLED_APPS = [
    ""django.contrib.admin"",
    ""django.contrib.auth"",
    ""django.contrib.contenttypes"",
    ""django.contrib.sessions"",
    ""django.contrib.messages"",
    ""django.contrib.staticfiles"",
    **'polls.apps.PollsConfig'**
]
}}}

Incorrect Code to copy:

{{{
INSTALLED_APPS = [
 **'polls.apps.PollsConfig'**
    ""django.contrib.admin"",
    ""django.contrib.auth"",
    ""django.contrib.contenttypes"",
    ""django.contrib.sessions"",
    ""django.contrib.messages"",
    ""django.contrib.staticfiles"",
]
}}}


"	Cleanup/optimization	closed	Documentation	4.1	Normal	invalid	tutorial, documentation, instructions,		Unreviewed	0	0	0	0	1	0
