Thanks Tim for your detailed reply. I have it now. HTML was
incorrect, and yes, now I understand better what is happening I have
rewritten the view as you suggest. I split it up only to try to make
clearer to me what was happening. Thanks again.
Mike
On Jun 2, 1:48 am, Tim Sawyer wrote:
> H
Hi,
I think the recommended approach in django is for forms to submit to the
current URL and for the view to decide whether the request is to display the
form (a HTTP GET) or submit the form (HTTP POST). I'd suggest that you
attempt to re-write this way.
Your error could be caused by nothi
Thanks for your response Tim. However, you lost me a bit there, I am
a real newbie. I have narrowed my question down to this:
# in views.py:
class PropertyForm(ModelForm):
class Meta:
model = Property
def property_update(request, property_id='0', street_id='0'):
On Monday 01 June 2009 01:38:30 adelaide_mike wrote:
> I found a really clear explanation of creating and updating database
> objects in SAMS TeachYourself Django, but it appears to be for v
> 0.96.
>
> I have looked at "Creating forms from models" in the documentation,
> and about one-third the w
I found a really clear explanation of creating and updating database
objects in SAMS TeachYourself Django, but it appears to be for v
0.96.
I have looked at "Creating forms from models" in the documentation,
and about one-third the way down it shows the following:
# Create a form instance from P
5 matches
Mail list logo