On Tue, Aug 23, 2011 at 3:15 PM, Julian Hodgson
wrote:
> FYI: this does the trick:
>
> from django.db import connection
> connection.close()
>
This should work better:
from django.db import transaction
transaction.enter_transaction_management()
transaction.managed(True)
# do some work
transacti
FYI: this does the trick:
from django.db import connection
connection.close()
On Tue, Aug 23, 2011 at 12:29 AM, Julian Hodgson <
julian.of.lon...@googlemail.com> wrote:
> Ok, that makes sense.
>
> The thing is, we've written some python plugins for Softimage to read and
> write to the db that
Ok, that makes sense.
The thing is, we've written some python plugins for Softimage to read and
write to the db that get loaded and stay in memory. When the plugins are
loaded, the django models are imported. So during the lifetime of the host
application, the python session is the same.
So I
On Monday, 22 August 2011 17:16:24 UTC+1, Julian Hodgson wrote:
>
> Hi there,
>
> I'm running a production linux django server using wsgi, and have found the
> following issue. Django version (1, 2, 5, 'final', 0).
>
> If I open a python shell I get:
>
> >>> from passion.cg.models import *
> >>> p
Hi there,
I'm running a production linux django server using wsgi, and have found the
following issue. Django version (1, 2, 5, 'final', 0).
If I open a python shell I get:
>>> from passion.cg.models import *
>>> print Sequence.objects.all()
[, , , ]
But if I go into the admin and delete seque
5 matches
Mail list logo