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/advocates/subscription-checkout/ |
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: | Fri, 29 Mar 2024 18:55:40 +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 0x7f18fa0c1550> |
/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 0x7f18fa0c1550>,) |
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 0x7f18fa0c1550> |
/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 0x7f18fa0c1550>, {'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 0x7f18fa0c1550> |
/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 '/advocates/subscription-checkout/'> |
/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 subscription_checkout at 0x7f18fbbe04c0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>> |
request | <WSGIRequest: GET '/advocates/subscription-checkout/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f190fb6b430> |
wrapped_callback | <function subscription_checkout at 0x7f18fbbe04c0> |
/usr/local/lib/python3.9/contextlib.py
, line 78, in inner
See issue #11647 for details.
"""
return self
def __call__(self, func):
@wraps(func)
def inner(*args, **kwds):
with self._recreate_cm():…
return func(*args, **kwds)
return inner
class _GeneratorContextManagerBase:
"""Shared functionality for @contextmanager and @asynccontextmanager."""
Variable | Value |
---|---|
args | (<WSGIRequest: GET '/advocates/subscription-checkout/'>,) |
func | <function subscription_checkout at 0x7f18fbbe0430> |
kwds | {} |
self | <django.db.transaction.Atomic object at 0x7f18fbbe3430> |
/usr/local/lib/python3.9/site-packages/cacheops/transaction.py
, line 70, in __enter__
return call()
class AtomicMixIn(object):
def __enter__(self):
entering = not transaction_states[self.using]
transaction_states[self.using].begin()
self._no_monkey.__enter__(self)…
if entering:
on_commit(transaction_states[self.using].commit, self.using)
def __exit__(self, exc_type, exc_value, traceback):
connection = get_connection(self.using)
try:
Variable | Value |
---|---|
entering | False |
self | <django.db.transaction.Atomic object at 0x7f18fbbe3430> |
/usr/local/lib/python3.9/site-packages/django/db/transaction.py
, line 196, in __enter__
"A durable atomic block cannot be nested within another "
"atomic block."
)
if not connection.in_atomic_block:
# Reset state when entering an outermost atomic block.
connection.commit_on_exit = True
connection.needs_rollback = False
if not connection.get_autocommit():…
# Pretend we're already in an atomic block to bypass the code
# that disables autocommit to enter a transaction, and make a
# note to deal with this case in __exit__.
connection.in_atomic_block = True
connection.commit_on_exit = False
Variable | Value |
---|---|
connection | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f18fa0c1550> |
self | <django.db.transaction.Atomic object at 0x7f18fbbe3430> |
/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py
, line 416, in get_autocommit
"subclasses of BaseDatabaseWrapper may require a _set_autocommit() method"
)
# ##### Generic transaction management methods #####
def get_autocommit(self):
"""Get the autocommit state."""
self.ensure_connection()…
return self.autocommit
def set_autocommit(
self, autocommit, force_begin_transaction_with_broken_autocommit=False
):
"""
Variable | Value |
---|---|
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f18fa0c1550> |
/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 0x7f18fa0c1550>,) |
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 0x7f18fa0c1550> |
/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 0x7f18fad77d30> |
traceback | <traceback object at 0x7f190ea5c640> |
/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 0x7f18fa0c1550> |
/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 0x7f18fa0c1550>,) |
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 0x7f18fa0c1550> |
/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 0x7f18fa0c1550>, {'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 0x7f18fa0c1550> |
/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 | '/advocates/subscription-checkout/' |
QUERY_STRING | '' |
RAW_URI | '/advocates/subscription-checkout/' |
REMOTE_ADDR | '172.19.0.1' |
REMOTE_PORT | '39206' |
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', 39206)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f18faef6d90> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7f18faef6100> |
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.