#34189: Code in Tutorial does not work because of a ','
-----------------------------------------+------------------------
               Reporter:  rroger         |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  Documentation  |        Version:  4.1
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 Page: https://docs.djangoproject.com/en/4.1/intro/tutorial01/

 Code

 {{{
 from django.urls import path

 from . import views

 urlpatterns = [
     path('', views.index, name='index'),
 ]
 }}}

 the ',' at the end of path(...) needs to be removed, otherwise an
 exception is raised and the code does not work.

 it should be:


 {{{
 from django.urls import path

 from . import views

 urlpatterns = [
     path('', views.index, name='index')
 ]
 }}}


 I am sorry in case I violite some buge tracking conventions. I actually
 want to continue with the tutorial, but wanted to raise the issue. Thanks
 for the otherwise greate tutorial! :)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34189>
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/01070184c35b49f6-b38b490f-2f45-493e-ba89-95bbf9025518-000000%40eu-central-1.amazonses.com.

Reply via email to