#20954: Tutorial Doco Error -------------------------------+-------------------- Reporter: n2cheval@… | Owner: nobody Type: Bug | Status: new Component: Documentation | Version: 1.5 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------+-------------------- On the page "https://docs.djangoproject.com/en/1.5/intro/tutorial03/" at the section "Write your first view"
It says to update the same file "polls/urls.py" twice, but with completely different code, even through it says to only add the "include". First from django.conf.urls import patterns, url from polls import views urlpatterns = patterns('', url(r'^$', views.index, name='index') ) Second from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^polls/', include('polls.urls')), url(r'^admin/', include(admin.site.urls)), ) The "final" second version errors. -- Ticket URL: <https://code.djangoproject.com/ticket/20954> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/063.204d88fb7f414ed4692ee3bef5bbd445%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.