Re: what is wrong with my New Forms code

2007-09-28 Thread staff-gmail
Richard Dahl wrote: > It is hard to see with the indentation as it is, but it seems you are > not returning an http response if the 'if id is none:' You are > building the form for model, but it doesnt look like it is returned. > The bottom line seems to be indented to correlate to the if

Re: what is wrong with my New Forms code

2007-09-27 Thread Richard Dahl
It is hard to see with the indentation as it is, but it seems you are not returning an http response if the 'if id is none:' You are building the form for model, but it doesnt look like it is returned. The bottom line seems to be indented to correlate to the if request.method not the

what is wrong with my New Forms code

2007-09-27 Thread staff-gmail
I tried the following but it fails in flames with "http response required..." I've followed the documentation - am I called the function correctly by a url with "/mymodel_addedit"Can someone help ? urls.py r'^mymodel/addedit/$', 'myproject.myapp.views.mymodel_addedit'), views.py def