Code

Opened 2 years ago

Closed 2 years ago

#17206 closed Uncategorized (fixed)

Example of ViewDoesNotExist error page in tutorial is outdated

Reported by: rabio Owned by: nobody
Component: Documentation Version:
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Content of ViewDoesNotExist error page in third part of the tutorial is inconsistent with what user will actually see. Diff below corrects this.

--- a/docs/intro/tutorial03.txt
+++ b/docs/intro/tutorial03.txt
@@ -147,8 +147,7 @@ You should get a pleasantly-colored error page with the following message::
 
     ViewDoesNotExist at /polls/
 
-    Tried index in module polls.views. Error was: 'module'
-    object has no attribute 'index'
+    Could not import polls.views.index. View does not exist in module polls.views.
 
 This error happened because you haven't written a function ``index()`` in the
 module ``polls/views.py``.

Attachments (0)

Change History (2)

comment:1 Changed 2 years ago by julien

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

Thanks!

comment:2 Changed 2 years ago by julien

  • Resolution set to fixed
  • Status changed from new to closed

In [17082]:

Fixed #17206 -- Fixed an outdated error message in the tutorial part 3. Thanks, rabio.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.