#25934: Lacking of app_name = 'polls' for "writing your first Django app" part 4
-Amend URLconf document
-------------------------------+--------------------------------------
     Reporter:  phanminhnhat   |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Documentation  |                  Version:  1.9
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by phanminhnhat):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old description:

> In "writing your first Django app" part 4 -Amend URLconf document , it is
> lacking of the one line of code about app name for urls.py file:
> (https://docs.djangoproject.com/en/1.9/intro/tutorial04/)
> app_name = 'polls'
>
> It will generate issue:
> NoReverseMatch at /polls/
> u'polls' is not a registered namespace

New description:

 In "writing your first Django app" part 4 -Amend URLconf document , it is
 lacking of one line of code about app name for urls.py file:
 (https://docs.djangoproject.com/en/1.9/intro/tutorial04/)
 app_name = 'polls'

 It will generate issue:
 NoReverseMatch at /polls/
 u'polls' is not a registered namespace

--

--
Ticket URL: <https://code.djangoproject.com/ticket/25934#comment:1>
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/070.73e38a3a056183d46452eaec2bb7b177%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to