#28338: Missing import in tutorial part 1
-------------------------------------+-------------------------------------
Reporter: Kieran | Owner: nobody
Mathieson |
Type: Bug | Status: new
Component: | Version: 1.11
Documentation | Keywords: Documentation,
Severity: Normal | Tutorial, Windows
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Django 1.11, Python 3.6, Windows 10 (don't judge)
Development server (python manage.py runserver)
In:
[https://docs.djangoproject.com/en/1.11/intro/tutorial01/#write-your-
first-view]
Code for mysite/urls.py is:
{{{
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^polls/', include('polls.urls')),
url(r'^admin/', admin.site.urls),
]
}}}
Need to import include() for this to run in environment given above.
{{{
from django.conf.urls import url
from django.contrib import admin
from django.conf.urls import include
urlpatterns = [
url(r'^polls/', include('polls.urls')),
url(r'^admin/', admin.site.urls),
]
}}}
This has been reported before in
[https://code.djangoproject.com/ticket/27553], but the ticket was marked
as invalid with no explanation that I could see.
Django rox!!
--
Ticket URL: <https://code.djangoproject.com/ticket/28338>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/058.96165e814669c88b7ef8e822a39236a7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.