Advertisement
Guest User

Untitled

a guest
Oct 26th, 2022
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.13 KB | None | 0 0
  1. 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.
  2.   File "django/core/handlers/wsgi.py", line 131, in __call__
  3.     signals.request_started.send(sender=self.__class__, environ=environ)
  4.   File "django/dispatch/dispatcher.py", line 182, in send
  5.     for receiver in self._live_receivers(sender)
  6.   File "django/dispatch/dispatcher.py", line 182, in <listcomp>
  7.     for receiver in self._live_receivers(sender)
  8.   File "django/db/__init__.py", line 38, in close_old_connections
  9.     conn.close_if_unusable_or_obsolete()
  10.   File "django_db_geventpool/backends/postgresql_psycopg2/base.py", line 81, in close_if_unusable_or_obsolete
  11.     self.close()
  12.   File "django_tenants/postgresql_backend/base.py", line 56, in close
  13.     super().close()
  14.   File "django_db_geventpool/backends/postgresql_psycopg2/base.py", line 61, in close
  15.     self.validate_thread_sharing()
  16.   File "django/db/backends/base/base.py", line 557, in validate_thread_sharing
  17.     % (self.alias, self._thread_ident, _thread.get_ident())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement