Example of ViewDoesNotExist error page in tutorial is outdated
|Reported by:||rabio||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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``.