#31740: Part 4 of the tutorial incorrectly uses a namespaced url
-------------------------------------+-------------------------------------
               Reporter:  maxi-mil   |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  3.0
  Documentation                      |       Keywords:  documentation,
               Severity:  Normal     |  namespace, error
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 I am new to using Django, but I believe I noticed an error with one of the
 urls in a template.

 This url is used in the form:

 {{{
 {% url 'polls:vote' question.id %}
 }}}

 Despite the path definition:

 {{{
 path('<int:question_id>/vote/', views.vote, name='vote'),
 }}}

 When I do the same, I get an error as the namespace doesn't exist. This is
 easily fixed by removing the namespace from the template.

 https://docs.djangoproject.com/en/3.0/intro/tutorial04/#write-a-minimal-
 form

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31740>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.424755ff5c82157ca5e7446d26c5e15d%40djangoproject.com.

Reply via email to