Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DatabaseError: DatabaseWrapper objects created in a thread can only be used in that same thread. The object with alias 'default' was created in thread id 140430815235824 and this is thread id 140430831329936.
- File "django/core/handlers/wsgi.py", line 131, in __call__
- signals.request_started.send(sender=self.__class__, environ=environ)
- File "django/dispatch/dispatcher.py", line 182, in send
- for receiver in self._live_receivers(sender)
- File "django/dispatch/dispatcher.py", line 182, in <listcomp>
- for receiver in self._live_receivers(sender)
- File "django/db/__init__.py", line 38, in close_old_connections
- conn.close_if_unusable_or_obsolete()
- File "django_db_geventpool/backends/postgresql_psycopg2/base.py", line 81, in close_if_unusable_or_obsolete
- self.close()
- File "django_tenants/postgresql_backend/base.py", line 56, in close
- super().close()
- File "django_db_geventpool/backends/postgresql_psycopg2/base.py", line 61, in close
- self.validate_thread_sharing()
- File "django/db/backends/base/base.py", line 557, in validate_thread_sharing
- % (self.alias, self._thread_ident, _thread.get_ident())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement