connection to server at "ec2-18-209-38-84.compute-1.amazonaws.com" (18.209.38.84), port 5432 failed: FATAL: password authentication failed for user "u47415" connection to server at "ec2-18-209-38-84.compute-1.amazonaws.com" (18.209.38.84), port 5432 failed: FATAL: no pg_hba.conf entry for host "3.92.48.123", user "u47415", database "dcvc68knbkt3p1", no encryption
Request Method: | GET |
---|---|
Request URL: | https://www.asppibra.com.br/ |
Django Version: | 4.1.13 |
Exception Type: | OperationalError |
Exception Value: | connection to server at "ec2-18-209-38-84.compute-1.amazonaws.com" (18.209.38.84), port 5432 failed: FATAL: password authentication failed for user "u47415" connection to server at "ec2-18-209-38-84.compute-1.amazonaws.com" (18.209.38.84), port 5432 failed: FATAL: no pg_hba.conf entry for host "3.92.48.123", user "u47415", database "dcvc68knbkt3p1", no encryption |
Exception Location: | /app/.heroku/python/lib/python3.11/site-packages/psycopg2/__init__.py, line 122, in connect |
Raised during: | home.views.index |
Python Executable: | /app/.heroku/python/bin/python |
Python Version: | 3.11.1 |
Python Path: | ['/app', '/app/.heroku/python/bin', '/app', '/app/.heroku/python/lib/python311.zip', '/app/.heroku/python/lib/python3.11', '/app/.heroku/python/lib/python3.11/lib-dynload', '/app/.heroku/python/lib/python3.11/site-packages'] |
Server time: | Thu, 28 Mar 2024 10:25:34 +0000 |
/app/.heroku/python/lib/python3.11/site-packages/django/db/backends/base/base.py
, line 282, 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 | <DatabaseWrapper vendor='postgresql' alias='default'> |
/app/.heroku/python/lib/python3.11/site-packages/django/utils/asyncio.py
, line 26, in inner
get_running_loop()
except RuntimeError:
pass
else:
if not os.environ.get("DJANGO_ALLOW_ASYNC_UNSAFE"):
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 | (<DatabaseWrapper vendor='postgresql' alias='default'>,) |
func | <function BaseDatabaseWrapper.connect at 0x7f4c11699440> |
kwargs | {} |
message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/app/.heroku/python/lib/python3.11/site-packages/django/db/backends/base/base.py
, line 263, in connect
self.close_at = None if max_age is None else time.monotonic() + max_age
self.closed_in_transaction = False
self.errors_occurred = False
# New connections are healthy.
self.health_check_done = True
# 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': 'dcvc68knbkt3p1', 'host': 'ec2-18-209-38-84.compute-1.amazonaws.com', 'password': 'eb0461047dda8d1b76a1f70cbf9d4bd871d519eadd79d9be40d58dee7d5b50ad', 'port': '5432'} |
max_age | 0 |
self | <DatabaseWrapper vendor='postgresql' alias='default'> |
/app/.heroku/python/lib/python3.11/site-packages/django/utils/asyncio.py
, line 26, in inner
get_running_loop()
except RuntimeError:
pass
else:
if not os.environ.get("DJANGO_ALLOW_ASYNC_UNSAFE"):
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 | (<DatabaseWrapper vendor='postgresql' alias='default'>, {'database': 'dcvc68knbkt3p1', 'host': 'ec2-18-209-38-84.compute-1.amazonaws.com', 'password': 'eb0461047dda8d1b76a1f70cbf9d4bd871d519eadd79d9be40d58dee7d5b50ad', 'port': '5432'}) |
func | <function DatabaseWrapper.get_new_connection at 0x7f4c11141580> |
kwargs | {} |
message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/app/.heroku/python/lib/python3.11/site-packages/django/db/backends/postgresql/base.py
, line 215, 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': 'dcvc68knbkt3p1', 'host': 'ec2-18-209-38-84.compute-1.amazonaws.com', 'password': 'eb0461047dda8d1b76a1f70cbf9d4bd871d519eadd79d9be40d58dee7d5b50ad', 'port': '5432'} |
self | <DatabaseWrapper vendor='postgresql' alias='default'> |
/app/.heroku/python/lib/python3.11/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 | ('password=eb0461047dda8d1b76a1f70cbf9d4bd871d519eadd79d9be40d58dee7d5b50ad ' 'host=ec2-18-209-38-84.compute-1.amazonaws.com port=5432 ' 'dbname=dcvc68knbkt3p1') |
kwargs | {'database': 'dcvc68knbkt3p1', 'host': 'ec2-18-209-38-84.compute-1.amazonaws.com', 'password': 'eb0461047dda8d1b76a1f70cbf9d4bd871d519eadd79d9be40d58dee7d5b50ad', 'port': '5432'} |
kwasync | {} |
/app/.heroku/python/lib/python3.11/site-packages/django/core/handlers/exception.py
, line 56, 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('connection to server at "ec2-18-209-38-84.compute-1.amazonaws.com" (18.209.38.84), port 5432 failed: FATAL: password authentication failed for user "u47415"\nconnection to server at "ec2-18-209-38-84.compute-1.amazonaws.com" (18.209.38.84), port 5432 failed: FATAL: no pg_hba.conf entry for host "3.92.48.123", user "u47415", database "dcvc68knbkt3p1", no encryption\n') |
get_response | <SessionMiddleware get_response=convert_exception_to_response.<locals>.inner> |
request | <WSGIRequest: GET '/'> |
/app/.heroku/python/lib/python3.11/site-packages/django/utils/deprecation.py
, line 138, in __call__
if self._is_coroutine:
return self.__acall__(request)
response = None
if hasattr(self, "process_request"):
response = self.process_request(request)
response = response or self.get_response(request)
if hasattr(self, "process_response"):
response = self.process_response(request, response)…
return response
async def __acall__(self, request):
"""
Async version of __call__ that is swapped in when an async request
is running.
Variable | Value |
---|---|
request | <WSGIRequest: GET '/'> |
response | <HttpResponse status_code=200, "text/html; charset=utf-8"> |
self | <SessionMiddleware get_response=convert_exception_to_response.<locals>.inner> |
/app/.heroku/python/lib/python3.11/site-packages/django/contrib/sessions/middleware.py
, line 59, in process_response
max_age = request.session.get_expiry_age()
expires_time = time.time() + max_age
expires = http_date(expires_time)
# Save the session data and refresh the client cookie.
# Skip session save for 500 responses, refs #3881.
if response.status_code != 500:
try:
request.session.save()…
except UpdateError:
raise SessionInterrupted(
"The request's session was deleted before the "
"request completed. The user may have logged "
"out in a concurrent request, for example."
)
Variable | Value |
---|---|
accessed | True |
empty | False |
expires | 'Thu, 11 Apr 2024 10:25:34 GMT' |
expires_time | 1712831134.319458 |
max_age | 1209600 |
modified | True |
request | <WSGIRequest: GET '/'> |
response | <HttpResponse status_code=200, "text/html; charset=utf-8"> |
self | <SessionMiddleware get_response=convert_exception_to_response.<locals>.inner> |
/app/.heroku/python/lib/python3.11/site-packages/django/contrib/sessions/backends/db.py
, line 80, in save
def save(self, must_create=False):
"""
Save the current session data to the database. If 'must_create' is
True, raise a database error if the saving operation doesn't create a
new entry (as opposed to possibly updating an existing entry).
"""
if self.session_key is None:
return self.create()…
data = self._get_session(no_load=must_create)
obj = self.create_model_instance(data)
using = router.db_for_write(self.model, instance=obj)
try:
with transaction.atomic(using=using):
obj.save(
Variable | Value |
---|---|
must_create | False |
self | <django.contrib.sessions.backends.db.SessionStore object at 0x7f4c0df18f50> |
/app/.heroku/python/lib/python3.11/site-packages/django/contrib/sessions/backends/db.py
, line 50, in create
return self.decode(s.session_data) if s else {}
def exists(self, session_key):
return self.model.objects.filter(session_key=session_key).exists()
def create(self):
while True:
self._session_key = self._get_new_session_key()…
try:
# Save immediately to ensure we have a unique entry in the
# database.
self.save(must_create=True)
except CreateError:
# Key wasn't unique. Try again.
Variable | Value |
---|---|
self | <django.contrib.sessions.backends.db.SessionStore object at 0x7f4c0df18f50> |
/app/.heroku/python/lib/python3.11/site-packages/django/contrib/sessions/backends/base.py
, line 150, in _get_new_session_key
except AttributeError:
return True
def _get_new_session_key(self):
"Return session key that isn't being used."
while True:
session_key = get_random_string(32, VALID_KEY_CHARS)
if not self.exists(session_key):…
return session_key
def _get_or_create_session_key(self):
if self._session_key is None:
self._session_key = self._get_new_session_key()
return self._session_key
Variable | Value |
---|---|
self | <django.contrib.sessions.backends.db.SessionStore object at 0x7f4c0df18f50> |
session_key | 'owjhqg7yvinh6jiptjokd88jse1ogjzf' |
/app/.heroku/python/lib/python3.11/site-packages/django/contrib/sessions/backends/db.py
, line 46, in exists
self._session_key = None
def load(self):
s = self._get_session_from_db()
return self.decode(s.session_data) if s else {}
def exists(self, session_key):
return self.model.objects.filter(session_key=session_key).exists()…
def create(self):
while True:
self._session_key = self._get_new_session_key()
try:
# Save immediately to ensure we have a unique entry in the
Variable | Value |
---|---|
self | <django.contrib.sessions.backends.db.SessionStore object at 0x7f4c0df18f50> |
session_key | 'owjhqg7yvinh6jiptjokd88jse1ogjzf' |
/app/.heroku/python/lib/python3.11/site-packages/django/db/models/query.py
, line 1226, in exists
_update.queryset_only = False
def exists(self):
"""
Return True if the QuerySet would have any results, False otherwise.
"""
if self._result_cache is None:
return self.query.has_results(using=self.db)…
return bool(self._result_cache)
async def aexists(self):
return await sync_to_async(self.exists)()
def contains(self, obj):
Variable | Value |
---|---|
self | Error in formatting: OperationalError: connection to server at "ec2-18-209-38-84.compute-1.amazonaws.com" (18.209.38.84), port 5432 failed: FATAL: password authentication failed for user "u47415" connection to server at "ec2-18-209-38-84.compute-1.amazonaws.com" (18.209.38.84), port 5432 failed: FATAL: no pg_hba.conf entry for host "3.92.48.123", user "u47415", database "dcvc68knbkt3p1", no encryption |
/app/.heroku/python/lib/python3.11/site-packages/django/db/models/sql/query.py
, line 592, in has_results
q.set_limits(high=1)
q.add_annotation(Value(1), "a")
return q
def has_results(self, using):
q = self.exists(using)
compiler = q.get_compiler(using=using)
return compiler.has_results()…
def explain(self, using, format=None, **options):
q = self.clone()
for option_name in options:
if (
not EXPLAIN_OPTIONS_PATTERN.fullmatch(option_name)
Variable | Value |
---|---|
compiler | <SQLCompiler model=Session connection=<DatabaseWrapper vendor='postgresql' alias='default'> using='default'> |
q | <django.db.models.sql.query.Query object at 0x7f4c0df18d50> |
self | <django.db.models.sql.query.Query object at 0x7f4c0deaee50> |
using | 'default' |
/app/.heroku/python/lib/python3.11/site-packages/django/db/models/sql/compiler.py
, line 1366, in has_results
return rows
def has_results(self):
"""
Backends (e.g. NoSQL) can override this in order to use optimized
versions of "query has any results."
"""
return bool(self.execute_sql(SINGLE))…
def execute_sql(
self, result_type=MULTI, chunked_fetch=False, chunk_size=GET_ITERATOR_CHUNK_SIZE
):
"""
Run the query against the database and return the result(s). The
Variable | Value |
---|---|
self | <SQLCompiler model=Session connection=<DatabaseWrapper vendor='postgresql' alias='default'> using='default'> |
/app/.heroku/python/lib/python3.11/site-packages/django/db/models/sql/compiler.py
, line 1396, 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 | (1, 'owjhqg7yvinh6jiptjokd88jse1ogjzf') |
result_type | 'single' |
self | <SQLCompiler model=Session connection=<DatabaseWrapper vendor='postgresql' alias='default'> using='default'> |
sql | ('SELECT %s AS "a" FROM "django_session" WHERE "django_session"."session_key" ' '= %s LIMIT 1') |
/app/.heroku/python/lib/python3.11/site-packages/django/utils/asyncio.py
, line 26, in inner
get_running_loop()
except RuntimeError:
pass
else:
if not os.environ.get("DJANGO_ALLOW_ASYNC_UNSAFE"):
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 | (<DatabaseWrapper vendor='postgresql' alias='default'>,) |
func | <function BaseDatabaseWrapper.cursor at 0x7f4c11699a80> |
kwargs | {} |
message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/app/.heroku/python/lib/python3.11/site-packages/django/db/backends/base/base.py
, line 323, 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 | <DatabaseWrapper vendor='postgresql' alias='default'> |
/app/.heroku/python/lib/python3.11/site-packages/django/db/backends/base/base.py
, line 299, in _cursor
wrapped_cursor = self.make_debug_cursor(cursor)
else:
wrapped_cursor = self.make_cursor(cursor)
return wrapped_cursor
def _cursor(self, name=None):
self.close_if_health_check_failed()
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 | <DatabaseWrapper vendor='postgresql' alias='default'> |
/app/.heroku/python/lib/python3.11/site-packages/django/utils/asyncio.py
, line 26, in inner
get_running_loop()
except RuntimeError:
pass
else:
if not os.environ.get("DJANGO_ALLOW_ASYNC_UNSAFE"):
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 | (<DatabaseWrapper vendor='postgresql' alias='default'>,) |
func | <function BaseDatabaseWrapper.ensure_connection at 0x7f4c11699620> |
kwargs | {} |
message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/app/.heroku/python/lib/python3.11/site-packages/django/db/backends/base/base.py
, line 281, in ensure_connection
% self.alias
)
@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):
"""
Variable | Value |
---|---|
self | <DatabaseWrapper vendor='postgresql' alias='default'> |
/app/.heroku/python/lib/python3.11/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('connection to server at "ec2-18-209-38-84.compute-1.amazonaws.com" (18.209.38.84), port 5432 failed: FATAL: password authentication failed for user "u47415"\nconnection to server at "ec2-18-209-38-84.compute-1.amazonaws.com" (18.209.38.84), port 5432 failed: FATAL: no pg_hba.conf entry for host "3.92.48.123", user "u47415", database "dcvc68knbkt3p1", no encryption\n') |
exc_type | <class 'psycopg2.OperationalError'> |
exc_value | OperationalError('connection to server at "ec2-18-209-38-84.compute-1.amazonaws.com" (18.209.38.84), port 5432 failed: FATAL: password authentication failed for user "u47415"\nconnection to server at "ec2-18-209-38-84.compute-1.amazonaws.com" (18.209.38.84), port 5432 failed: FATAL: no pg_hba.conf entry for host "3.92.48.123", user "u47415", database "dcvc68knbkt3p1", no encryption\n') |
self | <django.db.utils.DatabaseErrorWrapper object at 0x7f4c0e4bdd50> |
traceback | <traceback object at 0x7f4c0deaf900> |
/app/.heroku/python/lib/python3.11/site-packages/django/db/backends/base/base.py
, line 282, 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 | <DatabaseWrapper vendor='postgresql' alias='default'> |
/app/.heroku/python/lib/python3.11/site-packages/django/utils/asyncio.py
, line 26, in inner
get_running_loop()
except RuntimeError:
pass
else:
if not os.environ.get("DJANGO_ALLOW_ASYNC_UNSAFE"):
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 | (<DatabaseWrapper vendor='postgresql' alias='default'>,) |
func | <function BaseDatabaseWrapper.connect at 0x7f4c11699440> |
kwargs | {} |
message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/app/.heroku/python/lib/python3.11/site-packages/django/db/backends/base/base.py
, line 263, in connect
self.close_at = None if max_age is None else time.monotonic() + max_age
self.closed_in_transaction = False
self.errors_occurred = False
# New connections are healthy.
self.health_check_done = True
# 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': 'dcvc68knbkt3p1', 'host': 'ec2-18-209-38-84.compute-1.amazonaws.com', 'password': 'eb0461047dda8d1b76a1f70cbf9d4bd871d519eadd79d9be40d58dee7d5b50ad', 'port': '5432'} |
max_age | 0 |
self | <DatabaseWrapper vendor='postgresql' alias='default'> |
/app/.heroku/python/lib/python3.11/site-packages/django/utils/asyncio.py
, line 26, in inner
get_running_loop()
except RuntimeError:
pass
else:
if not os.environ.get("DJANGO_ALLOW_ASYNC_UNSAFE"):
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 | (<DatabaseWrapper vendor='postgresql' alias='default'>, {'database': 'dcvc68knbkt3p1', 'host': 'ec2-18-209-38-84.compute-1.amazonaws.com', 'password': 'eb0461047dda8d1b76a1f70cbf9d4bd871d519eadd79d9be40d58dee7d5b50ad', 'port': '5432'}) |
func | <function DatabaseWrapper.get_new_connection at 0x7f4c11141580> |
kwargs | {} |
message | 'You cannot call this from an async context - use a thread or sync_to_async.' |
/app/.heroku/python/lib/python3.11/site-packages/django/db/backends/postgresql/base.py
, line 215, 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': 'dcvc68knbkt3p1', 'host': 'ec2-18-209-38-84.compute-1.amazonaws.com', 'password': 'eb0461047dda8d1b76a1f70cbf9d4bd871d519eadd79d9be40d58dee7d5b50ad', 'port': '5432'} |
self | <DatabaseWrapper vendor='postgresql' alias='default'> |
/app/.heroku/python/lib/python3.11/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 | ('password=eb0461047dda8d1b76a1f70cbf9d4bd871d519eadd79d9be40d58dee7d5b50ad ' 'host=ec2-18-209-38-84.compute-1.amazonaws.com port=5432 ' 'dbname=dcvc68knbkt3p1') |
kwargs | {'database': 'dcvc68knbkt3p1', 'host': 'ec2-18-209-38-84.compute-1.amazonaws.com', 'password': 'eb0461047dda8d1b76a1f70cbf9d4bd871d519eadd79d9be40d58dee7d5b50ad', 'port': '5432'} |
kwasync | {} |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_ACCEPT_ENCODING | 'gzip, br' |
HTTP_CDN_LOOP | 'cloudflare' |
HTTP_CF_CONNECTING_IP | '34.230.35.103' |
HTTP_CF_IPCOUNTRY | 'US' |
HTTP_CF_RAY | '86b6eabd4f953ad5-IAD' |
HTTP_CF_VISITOR | '{"scheme":"https"}' |
HTTP_CONNECTION | 'close' |
HTTP_CONNECT_TIME | '0' |
HTTP_HOST | 'www.asppibra.com.br' |
HTTP_REFERER | 'http://www.asppibra.com.br/' |
HTTP_TOTAL_ROUTE_TIME | '0' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_VIA | '1.1 vegur' |
HTTP_X_FORWARDED_FOR | '34.230.35.103, 172.70.42.216' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REQUEST_ID | 'f918154c-8f93-4acb-bec9-369f0a6d1c81' |
HTTP_X_REQUEST_START | '1711621534301' |
PATH_INFO | '/' |
QUERY_STRING | '' |
RAW_URI | '/' |
REMOTE_ADDR | '10.1.24.32' |
REMOTE_PORT | '25353' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '0.0.0.0' |
SERVER_PORT | '33225' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'gunicorn/21.2.0' |
gunicorn.socket | <socket.socket fd=10, family=2, type=1, proto=0, laddr=('172.18.182.26', 33225), raddr=('10.1.24.32', 25353)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f4c0e25cf40> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7f4c0df1d550> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
core.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['127.0.0.1', 'localhost', 'asppibra.com.br', 'www.asppibra.com.br'] |
ANALYTICAL_AUTO_IDENTIFY | True |
ANALYTICAL_INTERNAL_IPS | ['127.0.0.1'] |
ANALYTICAL_PROVIDERS | {'google': {'OPTIONS': {'anonymize_ip': True, 'property_id': 'G-CT3BBRHB8W'}, 'TRACK_PAGEVIEWS': True}} |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | PosixPath('/app') |
BROKER_URL | 'amqps://xpfsrxcg:[email protected]/xpfsrxcg' |
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_IMPORTS | ('google_analytics.tasks',) |
CELERY_RESULT_BACKEND | 'redis://default:b76ekD7W8lzb2Hbw248LMauvwh3GFPX2@redis-17894.c323.us-east-1-2.ec2.cloud.redislabs.com:17894' |
CELERY_RESULT_SERIALIZER | 'json' |
CELERY_TASK_SERIALIZER | 'json' |
CELERY_TIMEZONE | 'UTC' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_MASKED | 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 | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': 'ec2-18-209-38-84.compute-1.amazonaws.com', 'NAME': 'dcvc68knbkt3p1', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': None}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATA_UPLOAD_MAX_NUMBER_FILES | 100 |
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'] |
DB_HOST | 'ec2-18-209-38-84.compute-1.amazonaws.com' |
DB_PORT | '5432' |
DB_USER | None |
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 | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.console.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
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 | False |
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' |
GOOGLE_ANALYTICS | {'google_analytics_id': 'G-CT3BBRHB8W'} |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['dashboard.apps.DashboardConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sitemaps', 'rest_framework', 'allauth.account', 'allauth.socialaccount', 'allauth', 'django_otp', 'two_factor', 'google_analytics', 'api', 'home', 'blog'] |
INTERNAL_IPS | [] |
LANGUAGES | [('zh', 'Mandarim'), ('es', 'Espanhol'), ('en', 'Inglês'), ('hi', 'Hindi'), ('ar', 'Árabe'), ('pt-br', 'Português Brasileiro'), ('ru', 'Russo'), ('ja', 'Japonês'), ('pa', 'Punjabi')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'pt-BR' |
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 |
LOCALE_PATHS | ['/app/locale'] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/app/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MESSAGE_TAGS | {20: 'secondary', 25: 'success', 40: 'danger'} |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'allauth.account.middleware.AccountMiddleware', 'google_analytics.middleware.GoogleAnalyticsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
POSTGRES_DB | 'dcvc68knbkt3p1' |
POSTGRES_PASSWORD | '********************' |
PREPEND_WWW | False |
RENDER_EXTERNAL_HOSTNAME | None |
ROOT_URLCONF | 'core.urls' |
SECRET_KEY | '********************' |
SECRET_KEY_FALLBACKS | '********************' |
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 | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'core.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/app/staticfiles' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/app/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', '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 | 'UTC' |
TWO_FACTOR_CALL_GATEWAY | 'two_factor.gateways.fake.Fake' |
TWO_FACTOR_SMS_GATEWAY | 'two_factor.gateways.fake.Fake' |
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 | 'core.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.