On 7/16/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
Nick wrote:> Martin,Well, not exactly :-)Haha, shouldn't post with my eyes closed while waking up.
> You mean if I access the model?Yes. By the time your response iterator starts working Django hasalready closed the database connection used in th
Nick wrote:
> Martin,
Well, not exactly :-)
> You mean if I access the model?
Yes. By the time your response iterator starts working Django has
already closed the database connection used in the request. If you try
to access a model a connection will be automatically opened again but
never c
Sorry Nick,
but the comment about the database access wasn't mine.. so I cannot
help you here
Martin
On 7/16/06, Nick <[EMAIL PROTECTED]> wrote:
> Martin,
>
> You mean if I access the model? I tried looking up a close() method for the
> DB api but couldn't find anything.
> Could you be more
Martin,You mean if I access the model? I tried looking up a close() method for the DB api but couldn't find anything.Could you be more specific, maybe give an example, so I can write it down in case I ever need it.
Currently trying to learn django, so I have a lot of newbie questions.-nick parrinOn
Nick,
> Cool, this actually works with yielding, thank you very much.
>
Glad that it worked (I didn't try it out)
> You don't seem to be THAT new too django:)
>
I am. Just started a few days ago. But since I had to find a way how to
use Django with a normal CGI interface I had to dig into t
Nick wrote:
> Martin,
>
> Cool, this actually works with yielding, thank you very much.
By the way remember that this response generation happens after the
moment when Django considers the response handled. This means that if
you, say, use any DB related functionality when generating response
Martin,Cool, this actually works with yielding, thank you very much.You don't seem to be THAT new too django:)Kind Regards,Nick ParrinOn 7/15/06,
Martin Glueck <[EMAIL PROTECTED]> wrote:
Nick,I'm new to Django so if I'm wrong here, I hope that somebody willcorrect me.> I'm wondering, is it pos
Nick,
I'm new to Django so if I'm wrong here, I hope that somebody will
correct me.
> I'm wondering, is it possible in django to write out data to the client
> (maybe via HttpResponse?) in an ubuffered way, so that you feed the data as
> it comes in django to the end user. I figured it's not
8 matches
Mail list logo