In tutorial, admin is broken throughout most of part 3
|Reported by:||Carl Meyer||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Now that the admin uses url-reversing, it can't handle a urlconf that refers to nonexistent view functions. Part 3 of the tutorial instructs users to write out four URL patterns for nonexistent views, and then slowly fills in the associated views. The last of the four is not created until midway through part 4. This means that new users who have just completed part two of the tutorial and are all excited about their new admin interface now find it mysteriously broken with
ViewDoesNotExist errors throughout almost all of part 3 and the beginning of part 4, with no explanation or reference to this in the tutorial text.
The simplest solution is to write placeholder views right away for all four URL patterns. The attached patch does this (along with a couple other very minor tweaks in tutorial parts 2 and 3). The other alternative would be to instruct the user to comment out several of the patterns until their associated views are written, but this seemed to require more changes and more convoluted language.