could not translate host name "db.zjfuhvvqknnbohkyclcj.supabase.co" to address: Name or service not known
Request Method: | GET |
---|---|
Request URL: | http://0.0.0.0:8000/login/ |
Django Version: | 4.0.5 |
Exception Type: | OperationalError |
Exception Value: | could not translate host name "db.zjfuhvvqknnbohkyclcj.supabase.co" to address: Name or service not known |
Exception Location: | /usr/local/lib/python3.9/site-packages/psycopg2/__init__.py, line 122, in connect |
Python Executable: | /usr/local/bin/python |
Python Version: | 3.9.17 |
Python Path: | ['/app', '/app', '/usr/local/bin', '/usr/local/lib/python39.zip', '/usr/local/lib/python3.9', '/usr/local/lib/python3.9/lib-dynload', '/usr/local/lib/python3.9/site-packages', '/usr/local/lib/python3.9/site-packages/odf', '/usr/local/lib/python3.9/site-packages/odf', '/usr/local/lib/python3.9/site-packages/odf', '/usr/local/lib/python3.9/site-packages/odf', '/usr/local/lib/python3.9/site-packages/odf', '/usr/local/lib/python3.9/site-packages/odf', '/usr/local/lib/python3.9/site-packages/odf'] |
Server time: | Thu, 28 Mar 2024 21:34:56 +0300 |
/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py
, line 244, in ensure_connection
)
@async_unsafe
def ensure_connection(self):
"""Guarantee that a connection to the database is established."""
if self.connection is None:
with self.wrap_database_errors:
self.connect()…
# ##### Backend-specific wrappers for PEP-249 connection methods #####
def _prepare_cursor(self, cursor):
"""
Validate the connection is usable and perform database cursor wrapping.
Variable | Value |
---|---|
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310> |
/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py
, line 26, in inner
try:
asyncio.get_running_loop()
except RuntimeError:
pass
else:
raise SynchronousOnlyOperation(message)
# Pass onward.
return func(*args, **kwargs)…
return inner
# If the message is actually a function, then be a no-arguments decorator.
if callable(message):
func = message
Variable | Value |
---|---|
args | (<django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310>,) |
func | <function BaseDatabaseWrapper.connect at 0x7f19110b0ca0> |
kwargs | {} |
message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py
, line 225, in connect
# Reset parameters defining when to close the connection
max_age = self.settings_dict["CONN_MAX_AGE"]
self.close_at = None if max_age is None else time.monotonic() + max_age
self.closed_in_transaction = False
self.errors_occurred = False
# Establish the connection
conn_params = self.get_connection_params()
self.connection = self.get_new_connection(conn_params)…
self.set_autocommit(self.settings_dict["AUTOCOMMIT"])
self.init_connection_state()
connection_created.send(sender=self.__class__, connection=self)
self.run_on_commit = []
Variable | Value |
---|---|
conn_params | {'database': 'postgres', 'host': 'db.zjfuhvvqknnbohkyclcj.supabase.co', 'password': 'mEt@sploit10i', 'port': 6543, 'user': 'postgres'} |
max_age | 0 |
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310> |
/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py
, line 26, in inner
try:
asyncio.get_running_loop()
except RuntimeError:
pass
else:
raise SynchronousOnlyOperation(message)
# Pass onward.
return func(*args, **kwargs)…
return inner
# If the message is actually a function, then be a no-arguments decorator.
if callable(message):
func = message
Variable | Value |
---|---|
args | (<django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310>, {'database': 'postgres', 'host': 'db.zjfuhvvqknnbohkyclcj.supabase.co', 'password': 'mEt@sploit10i', 'port': 6543, 'user': 'postgres'}) |
func | <function DatabaseWrapper.get_new_connection at 0x7f1910791dc0> |
kwargs | {} |
message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/usr/local/lib/python3.9/site-packages/django/db/backends/postgresql/base.py
, line 203, in get_new_connection
conn_params["host"] = settings_dict["HOST"]
if settings_dict["PORT"]:
conn_params["port"] = settings_dict["PORT"]
return conn_params
@async_unsafe
def get_new_connection(self, conn_params):
connection = Database.connect(**conn_params)…
# self.isolation_level must be set:
# - after connecting to the database in order to obtain the database's
# default when no value is explicitly specified in options.
# - before calling _set_autocommit() because if autocommit is on, that
# will set connection.isolation_level to ISOLATION_LEVEL_AUTOCOMMIT.
Variable | Value |
---|---|
conn_params | {'database': 'postgres', 'host': 'db.zjfuhvvqknnbohkyclcj.supabase.co', 'password': 'mEt@sploit10i', 'port': 6543, 'user': 'postgres'} |
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310> |
/usr/local/lib/python3.9/site-packages/psycopg2/__init__.py
, line 122, in connect
kwasync = {}
if 'async' in kwargs:
kwasync['async'] = kwargs.pop('async')
if 'async_' in kwargs:
kwasync['async_'] = kwargs.pop('async_')
dsn = _ext.make_dsn(dsn, **kwargs)
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)…
if cursor_factory is not None:
conn.cursor_factory = cursor_factory
return conn
Variable | Value |
---|---|
connection_factory | None |
cursor_factory | None |
dsn | ('user=postgres password=mEt@sploit10i ' 'host=db.zjfuhvvqknnbohkyclcj.supabase.co port=6543 dbname=postgres') |
kwargs | {'database': 'postgres', 'host': 'db.zjfuhvvqknnbohkyclcj.supabase.co', 'password': 'mEt@sploit10i', 'port': 6543, 'user': 'postgres'} |
kwasync | {} |
/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py
, line 55, in inner
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | OperationalError('could not translate host name "db.zjfuhvvqknnbohkyclcj.supabase.co" to address: Name or service not known\n') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f190fb6b430>> |
request | <WSGIRequest: GET '/login/'> |
/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py
, line 197, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if asyncio.iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function login_page at 0x7f190090bf70> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>> |
request | <WSGIRequest: GET '/login/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f190fb6b430> |
wrapped_callback | <function login_page at 0x7f190090bf70> |
/app/backend/views.py
, line 347, in login_page
return redirect('index')
except Exception as e:
logger.exception(e)
return redirect('index')
def login_page(request):
client_term = KenyanTerm.objects.last()…
diaspora_term = DiasporaTerm.objects.last()
advocate_term = AdvocateTerm.objects.last()
privacy_policy = PrivacyPolicy.objects.last()
optimized_adv_guide = AdvocateUserGuideOptimized.objects.last()
adv_guide = AdvocateUserGuide.objects.last()
login_form = UserLoginForm()
Variable | Value |
---|---|
request | <WSGIRequest: GET '/login/'> |
/usr/local/lib/python3.9/site-packages/django/db/models/manager.py
, line 85, in manager_method
def check(self, **kwargs):
return []
@classmethod
def _get_queryset_methods(cls, queryset_class):
def create_method(name, method):
def manager_method(self, *args, **kwargs):
return getattr(self.get_queryset(), name)(*args, **kwargs)…
manager_method.__name__ = method.__name__
manager_method.__doc__ = method.__doc__
return manager_method
new_methods = {}
Variable | Value |
---|---|
args | () |
kwargs | {} |
name | 'last' |
self | <django.db.models.manager.Manager object at 0x7f1900e3b9d0> |
/usr/local/lib/python3.9/site-packages/cacheops/query.py
, line 360, in last
def first(self):
if self._should_cache('get'):
return self._no_monkey.first(self._clone().cache())
return self._no_monkey.first(self)
def last(self):
if self._should_cache('get'):
return self._no_monkey.last(self._clone().cache())…
return self._no_monkey.last(self)
def exists(self):
if self._should_cache('exists'):
if self._result_cache is not None:
return bool(self._result_cache)
Variable | Value |
---|---|
self | Error in formatting: OperationalError: could not translate host name "db.zjfuhvvqknnbohkyclcj.supabase.co" to address: Name or service not known |
/usr/local/lib/python3.9/site-packages/django/db/models/query.py
, line 758, in last
def first(self):
"""Return the first object of a query or None if no match is found."""
for obj in (self if self.ordered else self.order_by("pk"))[:1]:
return obj
def last(self):
"""Return the last object of a query or None if no match is found."""
for obj in (self.reverse() if self.ordered else self.order_by("-pk"))[:1]:…
return obj
def in_bulk(self, id_list=None, *, field_name="pk"):
"""
Return a dictionary mapping each of the given IDs to the object with
that ID. If `id_list` isn't provided, evaluate the entire QuerySet.
Variable | Value |
---|---|
self | Error in formatting: OperationalError: could not translate host name "db.zjfuhvvqknnbohkyclcj.supabase.co" to address: Name or service not known |
/usr/local/lib/python3.9/site-packages/django/db/models/query.py
, line 320, in __iter__
2. sql.compiler.results_iter()
- Returns one row at time. At this point the rows are still just
tuples. In some cases the return values are converted to
Python values at this location.
3. self.iterator()
- Responsible for turning the rows into model objects.
"""
self._fetch_all()…
return iter(self._result_cache)
def __bool__(self):
self._fetch_all()
return bool(self._result_cache)
Variable | Value |
---|---|
self | Error in formatting: OperationalError: could not translate host name "db.zjfuhvvqknnbohkyclcj.supabase.co" to address: Name or service not known |
/usr/local/lib/python3.9/site-packages/cacheops/query.py
, line 281, in _fetch_all
lock = self._cacheprofile['lock']
with redis_client.getting(cache_key, lock=lock) as cache_data:
cache_read.send(sender=self.model, func=None, hit=cache_data is not None)
if cache_data is not None:
self._result_cache = settings.CACHEOPS_SERIALIZER.loads(cache_data)
else:
self._result_cache = list(self._iterable_class(self))…
self._cache_results(cache_key, self._result_cache)
return self._no_monkey._fetch_all(self)
def count(self):
if self._should_cache('count'):
Variable | Value |
---|---|
cache_data | None |
cache_key | 'q:74d9c0e1270fe2f966b050603953fae0' |
lock | False |
self | Error in formatting: OperationalError: could not translate host name "db.zjfuhvvqknnbohkyclcj.supabase.co" to address: Name or service not known |
/usr/local/lib/python3.9/site-packages/django/db/models/query.py
, line 57, in __iter__
def __iter__(self):
queryset = self.queryset
db = queryset.db
compiler = queryset.query.get_compiler(using=db)
# Execute the query. This will also fill compiler.select, klass_info,
# and annotations.
results = compiler.execute_sql(…
chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size
)
select, klass_info, annotation_col_map = (
compiler.select,
compiler.klass_info,
compiler.annotation_col_map,
Variable | Value |
---|---|
compiler | <django.db.models.sql.compiler.SQLCompiler object at 0x7f18facc29a0> |
db | 'default' |
queryset | Error in formatting: OperationalError: could not translate host name "db.zjfuhvvqknnbohkyclcj.supabase.co" to address: Name or service not known |
self | <django.db.models.query.ModelIterable object at 0x7f18faef26a0> |
/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py
, line 1359, in execute_sql
if result_type == MULTI:
return iter([])
else:
return
if chunked_fetch:
cursor = self.connection.chunked_cursor()
else:
cursor = self.connection.cursor()…
try:
cursor.execute(sql, params)
except Exception:
# Might fail for server-side cursors (e.g. connection closed)
cursor.close()
raise
Variable | Value |
---|---|
chunk_size | 100 |
chunked_fetch | False |
params | () |
result_type | 'multi' |
self | <django.db.models.sql.compiler.SQLCompiler object at 0x7f18facc29a0> |
sql | ('SELECT "backend_kenyanterm"."id", "backend_kenyanterm"."file" FROM ' '"backend_kenyanterm" ORDER BY "backend_kenyanterm"."id" DESC LIMIT 1') |
/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py
, line 26, in inner
try:
asyncio.get_running_loop()
except RuntimeError:
pass
else:
raise SynchronousOnlyOperation(message)
# Pass onward.
return func(*args, **kwargs)…
return inner
# If the message is actually a function, then be a no-arguments decorator.
if callable(message):
func = message
Variable | Value |
---|---|
args | (<django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310>,) |
func | <function BaseDatabaseWrapper.cursor at 0x7f19110bb280> |
kwargs | {} |
message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py
, line 284, in cursor
return self.connection.close()
# ##### Generic wrappers for PEP-249 connection methods #####
@async_unsafe
def cursor(self):
"""Create a cursor, opening a connection if necessary."""
return self._cursor()…
@async_unsafe
def commit(self):
"""Commit a transaction and reset the dirty flag."""
self.validate_thread_sharing()
self.validate_no_atomic_block()
Variable | Value |
---|---|
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310> |
/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py
, line 260, in _cursor
if self.queries_logged:
wrapped_cursor = self.make_debug_cursor(cursor)
else:
wrapped_cursor = self.make_cursor(cursor)
return wrapped_cursor
def _cursor(self, name=None):
self.ensure_connection()…
with self.wrap_database_errors:
return self._prepare_cursor(self.create_cursor(name))
def _commit(self):
if self.connection is not None:
with self.wrap_database_errors:
Variable | Value |
---|---|
name | None |
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310> |
/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py
, line 26, in inner
try:
asyncio.get_running_loop()
except RuntimeError:
pass
else:
raise SynchronousOnlyOperation(message)
# Pass onward.
return func(*args, **kwargs)…
return inner
# If the message is actually a function, then be a no-arguments decorator.
if callable(message):
func = message
Variable | Value |
---|---|
args | (<django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310>,) |
func | <function BaseDatabaseWrapper.ensure_connection at 0x7f19110b0e50> |
kwargs | {} |
message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py
, line 244, in ensure_connection
)
@async_unsafe
def ensure_connection(self):
"""Guarantee that a connection to the database is established."""
if self.connection is None:
with self.wrap_database_errors:
self.connect()…
# ##### Backend-specific wrappers for PEP-249 connection methods #####
def _prepare_cursor(self, cursor):
"""
Validate the connection is usable and perform database cursor wrapping.
Variable | Value |
---|---|
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310> |
/usr/local/lib/python3.9/site-packages/django/db/utils.py
, line 91, in __exit__
db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__)
if issubclass(exc_type, db_exc_type):
dj_exc_value = dj_exc_type(*exc_value.args)
# Only set the 'errors_occurred' flag for errors that may make
# the connection unusable.
if dj_exc_type not in (DataError, IntegrityError):
self.wrapper.errors_occurred = True
raise dj_exc_value.with_traceback(traceback) from exc_value…
def __call__(self, func):
# Note that we are intentionally not using @wraps here for performance
# reasons. Refs #21109.
def inner(*args, **kwargs):
with self:
Variable | Value |
---|---|
db_exc_type | <class 'psycopg2.OperationalError'> |
dj_exc_type | <class 'django.db.utils.OperationalError'> |
dj_exc_value | OperationalError('could not translate host name "db.zjfuhvvqknnbohkyclcj.supabase.co" to address: Name or service not known\n') |
exc_type | <class 'psycopg2.OperationalError'> |
exc_value | OperationalError('could not translate host name "db.zjfuhvvqknnbohkyclcj.supabase.co" to address: Name or service not known\n') |
self | <django.db.utils.DatabaseErrorWrapper object at 0x7f1900cbafa0> |
traceback | <traceback object at 0x7f18fa0f22c0> |
/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py
, line 244, in ensure_connection
)
@async_unsafe
def ensure_connection(self):
"""Guarantee that a connection to the database is established."""
if self.connection is None:
with self.wrap_database_errors:
self.connect()…
# ##### Backend-specific wrappers for PEP-249 connection methods #####
def _prepare_cursor(self, cursor):
"""
Validate the connection is usable and perform database cursor wrapping.
Variable | Value |
---|---|
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310> |
/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py
, line 26, in inner
try:
asyncio.get_running_loop()
except RuntimeError:
pass
else:
raise SynchronousOnlyOperation(message)
# Pass onward.
return func(*args, **kwargs)…
return inner
# If the message is actually a function, then be a no-arguments decorator.
if callable(message):
func = message
Variable | Value |
---|---|
args | (<django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310>,) |
func | <function BaseDatabaseWrapper.connect at 0x7f19110b0ca0> |
kwargs | {} |
message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py
, line 225, in connect
# Reset parameters defining when to close the connection
max_age = self.settings_dict["CONN_MAX_AGE"]
self.close_at = None if max_age is None else time.monotonic() + max_age
self.closed_in_transaction = False
self.errors_occurred = False
# Establish the connection
conn_params = self.get_connection_params()
self.connection = self.get_new_connection(conn_params)…
self.set_autocommit(self.settings_dict["AUTOCOMMIT"])
self.init_connection_state()
connection_created.send(sender=self.__class__, connection=self)
self.run_on_commit = []
Variable | Value |
---|---|
conn_params | {'database': 'postgres', 'host': 'db.zjfuhvvqknnbohkyclcj.supabase.co', 'password': 'mEt@sploit10i', 'port': 6543, 'user': 'postgres'} |
max_age | 0 |
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310> |
/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py
, line 26, in inner
try:
asyncio.get_running_loop()
except RuntimeError:
pass
else:
raise SynchronousOnlyOperation(message)
# Pass onward.
return func(*args, **kwargs)…
return inner
# If the message is actually a function, then be a no-arguments decorator.
if callable(message):
func = message
Variable | Value |
---|---|
args | (<django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310>, {'database': 'postgres', 'host': 'db.zjfuhvvqknnbohkyclcj.supabase.co', 'password': 'mEt@sploit10i', 'port': 6543, 'user': 'postgres'}) |
func | <function DatabaseWrapper.get_new_connection at 0x7f1910791dc0> |
kwargs | {} |
message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/usr/local/lib/python3.9/site-packages/django/db/backends/postgresql/base.py
, line 203, in get_new_connection
conn_params["host"] = settings_dict["HOST"]
if settings_dict["PORT"]:
conn_params["port"] = settings_dict["PORT"]
return conn_params
@async_unsafe
def get_new_connection(self, conn_params):
connection = Database.connect(**conn_params)…
# self.isolation_level must be set:
# - after connecting to the database in order to obtain the database's
# default when no value is explicitly specified in options.
# - before calling _set_autocommit() because if autocommit is on, that
# will set connection.isolation_level to ISOLATION_LEVEL_AUTOCOMMIT.
Variable | Value |
---|---|
conn_params | {'database': 'postgres', 'host': 'db.zjfuhvvqknnbohkyclcj.supabase.co', 'password': 'mEt@sploit10i', 'port': 6543, 'user': 'postgres'} |
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f1900cff310> |
/usr/local/lib/python3.9/site-packages/psycopg2/__init__.py
, line 122, in connect
kwasync = {}
if 'async' in kwargs:
kwasync['async'] = kwargs.pop('async')
if 'async_' in kwargs:
kwasync['async_'] = kwargs.pop('async_')
dsn = _ext.make_dsn(dsn, **kwargs)
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)…
if cursor_factory is not None:
conn.cursor_factory = cursor_factory
return conn
Variable | Value |
---|---|
connection_factory | None |
cursor_factory | None |
dsn | ('user=postgres password=mEt@sploit10i ' 'host=db.zjfuhvvqknnbohkyclcj.supabase.co port=6543 dbname=postgres') |
kwargs | {'database': 'postgres', 'host': 'db.zjfuhvvqknnbohkyclcj.supabase.co', 'password': 'mEt@sploit10i', 'port': 6543, 'user': 'postgres'} |
kwasync | {} |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | '0.0.0.0:8000' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/login/' |
QUERY_STRING | '' |
RAW_URI | '/login/' |
REMOTE_ADDR | '172.19.0.1' |
REMOTE_PORT | '33976' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '0.0.0.0' |
SERVER_PORT | '8000' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.1.0' |
gunicorn.socket | <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('172.19.0.4', 8000), raddr=('172.19.0.1', 33976)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f18fae1cc70> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7f18fae1c280> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
wakili_cloud.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_AUTHENTICATION_METHOD | 'email' |
ACCOUNT_EMAIL_REQUIRED | True |
ACCOUNT_UNIQUE_EMAIL | True |
ACCOUNT_USERNAME_REQUIRED | False |
ACCOUNT_USER_MODEL_USERNAME_FIELD | None |
ADMINS | [('William', 'william.otieno@legaltechkenya.com')] |
ADVOCATE_MODEL | 'advocates.Adv' |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'backend.User' |
BASE_DIR | PosixPath('/app') |
CACHEOPS | {'advocates.*': {'ops': 'all', 'timeout': 3600}, 'auth.*': {'ops': 'all', 'timeout': 3600}, 'backend.*': {'ops': 'all', 'timeout': 7200}, 'client.*': {'ops': 'all', 'timeout': 3600}, 'lawyers.*': {'ops': 'all', 'timeout': 3600}} |
CACHEOPS_DEFAULTS | {'timeout': 3600} |
CACHEOPS_REDIS | 'redis://redis:6379/1' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CELERY_ACCEPT_CONTENT | ['application/json'] |
CELERY_BROKER_URL | 'redis://redis:6379/2' |
CELERY_CACHE_BACKEND | 'django-cache' |
CELERY_RESULT_BACKEND | 'django-db' |
CELERY_RESULT_SERIALIZER | 'json' |
CELERY_TASK_SERIALIZER | 'json' |
CELERY_TASK_TRACK_STARTED | True |
CELERY_TIMEZONE | 'Africa/Nairobi' |
CKEDITOR_BROWSE_SHOW_DIRS | True |
CKEDITOR_CONFIGS | {'default': {'height': '700', 'resize_enabled': True, 'toolbar': 'full', 'width': '160%'}} |
CKEDITOR_IMAGE_BACKEND | 'pillow' |
CKEDITOR_RESTRICT_BY_DATE | True |
CKEDITOR_RESTRICT_BY_USER | True |
CKEDITOR_UPLOAD_PATH | 'content/ckeditor/' |
CLIENT_MODEL | 'backend.Client' |
CRISPY_TEMPLATE_PACK | 'bootstrap4' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | ['https://*.legalpointservices.com', 'http://*.legalpointservices.com'] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': 'db.zjfuhvvqknnbohkyclcj.supabase.co', 'NAME': 'postgres', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': 6543, 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'postgres'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_AUTO_FIELD | 'django.db.models.BigAutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'storages.backends.gcloud.GoogleCloudStorage' |
DEFAULT_FROM_EMAIL | 'Legal Point <accounts@legalpointservices.com>' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.eu.mailgun.org' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'authelio@me.williamotieno.tech' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
GS_BUCKET_NAME | 'legalpointbucket' |
GS_CREDENTIALS | <google.oauth2.service_account.Credentials object at 0x7f19131bfd90> |
GS_FILE_OVERWRITE | False |
GS_PROJECT_ID | 'legalpointservices' |
HIJACK_PERMISSION_CHECK | 'hijack.permissions.superusers_and_staff' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.contenttypes', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'multiselectfield', 'easy_pdf', 'ckeditor', 'ckeditor_uploader', 'widget_tweaks', 'crispy_forms', 'django_toggle_switch_widget', 'django_filters', 'django_extensions', 'django_serverless_cron', 'hijack', 'import_export', 'hijack.contrib.admin', 'captcha', 'session_security', 'cacheops', 'django_celery_results', 'django_celery_beat', 'rest_framework', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.google', 'client.apps.ClientConfig', 'backend.apps.BackendConfig', 'pesapal_payment.apps.PesapalPaymentConfig', 'lawyers.apps.LawyersConfig', 'advocates', 'suluhu', 'draftme'] |
INTERNAL_IPS | ['172.19.0.1', '127.0.0.1', '10.0.2.2'] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('ms', 'Malay'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LAWYER_MODEL | 'lawyers.Lawyer' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/redirect-user/' |
LOGIN_URL | '/login/' |
LOGOUT_REDIRECT_URL | '/logout/' |
MANAGERS | [] |
MEDIA_ROOT | PosixPath('/app/media') |
MEDIA_URL | 'https://storage.googleapis.com/legalpointbucket/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'hijack.middleware.HijackUserMiddleware', 'django.contrib.auth.middleware.RemoteUserMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'session_security.middleware.SessionSecurityMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PESAPAL_KEY | '********************' |
PESAPAL_SECRET | '********************' |
PREPEND_WWW | False |
RECAPTCHA_PRIVATE_KEY | '********************' |
RECAPTCHA_PUBLIC_KEY | '********************' |
REST_AUTH_TOKEN_MODEL | '********************' |
ROOT_URLCONF | 'wakili_cloud.urls' |
SAMARITAN_CREDS | '/app/wakili_cloud/samaritan_va.json' |
SECRET_KEY | '********************' |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_CROSS_ORIGIN_OPENER_POLICY | 'same-origin' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | True |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SECURITY_EXPIRE_AFTER | 1200 |
SESSION_SECURITY_WARN_AFTER | 900 |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'wakili_cloud.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | ['captcha.recaptcha_test_key_error'] |
SITE_ID | 1 |
SOCIALACCOUNT_ADAPTER | 'backend.adapter.MyAdapter' |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | PosixPath('/app/static') |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [PosixPath('/app/templates')], 'OPTIONS': {'context_processors': ['django.template.context_processors.request', 'django.template.context_processors.debug', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Africa/Nairobi' |
UPLOAD_ROOT | 'media/uploads/' |
USE_DEPRECATED_PYTZ | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'wakili_cloud.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
YEAR_MONTH_FORMAT | 'F Y' |
You’re seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.