[Python-talk] Django tutorial issues.
f at ke1g.mv.com
Sun Jun 24 23:35:14 EDT 2007
Kent Johnson writes:
> Bill Freeman wrote:
> > It all works as advertised, even though I was reading the version of the tutorial
> > for the subversion release, rather than for 0.95, until the very last stuff on
> > the fourth and final page of the turorial, and even most of that is good. The
> > url to pass to HttpResponseRedirect(), however, is an issue. The tutorial (even
> > the 0.95 version of the tutorial, unless I mis-read it) is silent on fixing this
> > up. reverse() can't deal with the missing results() view function as a basis for
> > figuring out the url, and I can't blame it.
> > If I hard the url as:
> > '/polls/%d/results/' % p.id
> > everything works. But that's putting an absolute path into the code, so it
> > wouldn't "plug in" elsewhere without modification.
> That is the url shown in the 0.96 and 0.95 tutorials section 4.
I knew that there were people less blind than I am.
Interestingly, the subversion version of the tutorial worked fine
right up to the generic views section, reverse function and all.
More information about the Python-talk