title: remaining connection slots are reserved for non-replication superuser connections
body: <p>I currently have a django application, and have a PostgreSQL database. I have researched this error, and have found other answers on Stackoverflow, but none seem to answer my exact question. I am getting this error when a request is made to a server. Note that I am currently running my application locally. A lot of my views contain requests to the database:</p>
  
  <pre><code>django.db.utils.OperationalError: FATAL:  remaining connection slots are reserved for non-replication superuser connections
  </code></pre>
  
  <p>Here are the configurations for the database that are in my settings.py file:</p>
  
  <p>Any help would be greatly appreciated!</p>
  
  <pre><code>DATABASES = {
      'default': {
          'ENGINE': 'django_postgrespool',
          'NAME': 'database',
          'USER': 'user',
          'PASSWORD': 'password',
          'HOST': 'localhost',
          'PORT': '5432',
          'CONN_MAX_AGE': 0,
      }
  }
  </code></pre>