﻿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
35490	Writing your first Django app, part 3	Michael Huis	sammy20d	"I think the code in a example needs to be adjusted.

Under ""Writing more views¶""

from django.urls import path

from . import views

urlpatterns = [
    # ex: /polls/
    path("""", views.index, name=""index""),
    # ex: /polls/5/
    path(""<int:question_id>/"", views.detail, name=""detail""),
    # ex: /polls/5/results/
    path(""<int:question_id>/results/"", views.results, name=""results""),
    # ex: /polls/5/vote/
    path(""<int:question_id>/vote/"", views.vote, name=""vote""),
]

I think it should be:

from django.urls import path

from . import views

urlpatterns = [
    # ex: /polls/
    path("""", views.index, name=""index""),
    # ex: /polls/5/
    path(""**polls/**<int:question_id>/"", views.detail, name=""detail""),
    # ex: /polls/5/results/
    path(""**polls/**<int:question_id>/results/"", views.results, name=""results""),
    # ex: /polls/5/vote/
    path(""**polls/**<int:question_id>/vote/"", views.vote, name=""vote""),
]

the polls page wasnt added."	Bug	closed	Documentation	5.0	Normal	invalid	tutorial03	Michael Huis	Unreviewed	0	0	0	0	0	0
