Thanks Aymeric! I'll give that a try next time!

On Wednesday, March 8, 2017 at 3:20:31 PM UTC-6, Aymeric Augustin wrote:
>
> Hello,
>
> On 8 Mar 2017, at 21:23, Chris Foresman <fore...@gmail.com <javascript:>> 
> wrote:
>
> I'll chime in to say I've had a similar problem related to the shell and I 
> couldn't sort out how to address it.
>
>
> In such situations, AFAIK, the following works:
>
> from django.db import connection
> connection.close()
>
> Then Django will reopen the connection for the next database query.
>
> HTH,
>
> -- 
> Aymeric.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/e2cee051-7c7b-4224-99b1-908b21f968a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to