I&#x27;m not sure if this is in fact what you&#x27;re saying, but the closing the database connection each time is only the default (historical reasons), changing it is a matter of changing one setting: <a href="https:&#x2F;&#x2F;docs.djangoproject.com&#x2F;en&#x2F;1.9&#x2F;ref&#x2F;databases&#x2F;#connection-management" rel="nofollow">https:&#x2F;&#x2F;docs.djangoproject.com&#x2F;en&#x2F;1.9&#x2F;ref&#x2F;databases&#x2F;#connect...</a>