Mike, I agree. It seems that 0 and 2 should have similar effects in your case. Have you tried 1? So, 2 behaves like None, eh? Perhaps that's because they are both allowing connections to be reused. 0 explicitly prevents connection pooling, so that each request opens/uses/closes its own connection. Maybe there's a bug related to closing connections as you originally suggested? Have you tried a different driver for the spatialite DB? Also, can you experiment with a different DB to shed some light in the problem? Personally, I've found it VERY easy to flip between MySQL and SQLite. On my project, we use MySQL in PROD, but we run all of our regression tests against SQLite. To make this happen, all I had to do was add this to our settings file: RUNNING_UNIT_TESTS = 'test' in sys.argv if RUNNING_UNIT_TESTS: DATABASES['default'] = { 'ENGINE': 'django.db.backends.sqlite3', } Any other ideas, anyone? --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates. On 1/17/17 3:59 PM, Michael Grundler
wrote:
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/17a7a3a4-c3f3-8ebf-c5ff-0d57d14ba640%40bristle.com. For more options, visit https://groups.google.com/d/optout. |
- What is the fate of closed database connectio... Michael Grundler
- Re: What is the fate of closed database ... Fred Stluka
- Re: What is the fate of closed datab... Michael Grundler
- Re: What is the fate of closed d... Fred Stluka
- Re: What is the fate of clos... Michael Grundler
- Re: What is the fate of... Fred Stluka
- Re: What is the fate of closed datab... 'Tom Evans' via Django users
- Re: What is the fate of closed d... Michael Grundler