On Oct 15, 11:42 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Tue, 2008-10-14 at 17:38 -0700, david wrote:
> > Hi hope all is well.  Please tell me if this is related to Django.
>
> > Using Django 1.0 with Apache 2.2.9.
>
> > Have a very simple form by writing to the Httpresponse directly.
>
> > r = HttpResponse()
> > r.write('<form action="" method="post">')
> > r.write('<p>First name: <input type="text" name="first_name"></p>')
> > r.write('<p><input type="submit" value="Submit"></p>')
> > r.write('</form>')
> > return r
>
> If you look at the source, you can see that all write() does is append
> to the content of the class. So the net effect of the above code is the
> same as constructing it all at once and returning.
>
> This is something else. There's no reason at all to suspect Django here,
> since all Django's work is done before any content is returned.
>
> Regards,
> Malcolm

Thanks for the quick reply Malcolm. I don't doubt the code, as they
are almost a straight copy from the example directory.  I'll keep
looking.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to