﻿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
31467	"Possible error in the doc ""Writing your first Django app, part 1""."	Marc-Antoine Daneau	nobody	"There is something not working in the [https://docs.djangoproject.com/en/3.0/intro/tutorial01/ first step of the Django tutorial]. 

near the end of the page,** mysite/urls.py** is defined as : 

{{{
#!div style=""font-size: 80%""
  {{{#!python
from django.contrib import admin
from django.urls import include, path

urlpatterns = [
    path('polls/', include('polls.urls')),
    path('admin/', admin.site.urls),
]
  }}}
}}}

When I runserver with this, I got the error : 

{{{
 File ""/home/myuser/dev/mysite1/mysite1/urls.py"", line 25, in <module>
    path('polls/', include('polls.urls')),
NameError: name 'include' is not defined
}}}

To solve this, I added this to **mysite/urls.py** : 

{{{
from django.conf.urls import include
}}}

I'm not sure this is the best way to solve the error, but it works. Thanks. "	Bug	closed	Documentation	3.0	Normal	invalid		Marc-Antoine Daneau	Unreviewed	0	0	0	0	0	0
