could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
Request Method: | GET |
---|---|
Request URL: | https://www.hostapet.com/terms |
Django Version: | 1.9.13 |
Exception Type: | OperationalError |
Exception Value: | could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? |
Exception Location: | /home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/psycopg2/__init__.py in connect, line 126 |
Python Executable: | /usr/local/bin/uwsgi |
Python Version: | 2.7.12 |
Python Path: | ['.', '', '/home/ubuntu/.virtualenvs/pet_api_project/lib/python2.7', '/home/ubuntu/.virtualenvs/pet_api_project/lib/python2.7/plat-x86_64-linux-gnu', '/home/ubuntu/.virtualenvs/pet_api_project/lib/python2.7/lib-tk', '/home/ubuntu/.virtualenvs/pet_api_project/lib/python2.7/lib-old', '/home/ubuntu/.virtualenvs/pet_api_project/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages', '/home/ubuntu/.virtualenvs/pet_api_project/lib/python2.7/site-packages'] |
Server time: | Lun, 18 Mar 2024 21:14:33 -0600 |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
e | OperationalError('could not connect to server: Connection refused\n\tIs the server running on host "localhost" (127.0.0.1) and accepting\n\tTCP/IP connections on port 5432?\n',) |
callback_args | () |
resolver_match | ResolverMatch(func=web.webviews.TermsAndConditionsView, args=(), kwargs={}, url_name=terms, app_names=['web'], namespaces=['web']) |
response_is_rendered | False |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f81bf32ffd0>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f81daa90c50> |
request | <WSGIRequest: GET '/terms'> |
callback | <function TermsAndConditionsView at 0x7f81be9f3c08> |
wrapped_callback | <function TermsAndConditionsView at 0x7f81be9f3c08> |
resolver | <RegexURLResolver 'pet_api_project.urls' (None:None) ^/> |
callback_kwargs | {} |
response | None |
urlconf | 'pet_api_project.urls' |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
e | OperationalError('could not connect to server: Connection refused\n\tIs the server running on host "localhost" (127.0.0.1) and accepting\n\tTCP/IP connections on port 5432?\n',) |
callback_args | () |
resolver_match | ResolverMatch(func=web.webviews.TermsAndConditionsView, args=(), kwargs={}, url_name=terms, app_names=['web'], namespaces=['web']) |
response_is_rendered | False |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f81bf32ffd0>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f81daa90c50> |
request | <WSGIRequest: GET '/terms'> |
callback | <function TermsAndConditionsView at 0x7f81be9f3c08> |
wrapped_callback | <function TermsAndConditionsView at 0x7f81be9f3c08> |
resolver | <RegexURLResolver 'pet_api_project.urls' (None:None) ^/> |
callback_kwargs | {} |
response | None |
urlconf | 'pet_api_project.urls' |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/views/generic/base.py
in view
def view(request, *args, **kwargs):
self = cls(**initkwargs)
if hasattr(self, 'get') and not hasattr(self, 'head'):
self.head = self.get
self.request = request
self.args = args
self.kwargs = kwargs
return self.dispatch(request, *args, **kwargs)...
view.view_class = cls
view.view_initkwargs = initkwargs
# take name and docstring from class
update_wrapper(view, cls, updated=())
Variable | Value |
---|---|
initkwargs | {} |
self | <web.webviews.TermsAndConditionsView object at 0x7f81bbb6c8d0> |
args | () |
request | <WSGIRequest: GET '/terms'> |
kwargs | {} |
cls | <class 'web.webviews.TermsAndConditionsView'> |
./users/webviews.py
in dispatch
return True
def dispatch(self, request, language_code='es', country_code='MX',
*args, **kwargs):
# Try to get token from cookie
token = self.get_auth_token_from_cookies(request)
self.languages_model = LanguagesControllers.get_by_languages_code(
language_code...
)
globals.languages_code = language_code.lower()
self.languages_code = language_code.lower()
if not token:
token = self.get_auth_token_from_get_param(request)
Variable | Value |
---|---|
language_code | 'es' |
self | <web.webviews.TermsAndConditionsView object at 0x7f81bbb6c8d0> |
args | () |
request | <WSGIRequest: GET '/terms'> |
token | None |
country_code | 'MX' |
kwargs | {} |
./language/controllers.py
in get_by_languages_code
@classmethod
def get_by_languages_code(cls, code='es'):
languages = cls.model.objects.filter(
languages_code=code.lower(),
enable=True
)
if languages.exists():...
return languages[0]
return cls.get_default()
@classmethod
def get_default(cls):
return cls.model.objects.first()
Variable | Value |
---|---|
languages | Error in formatting: OperationalError: could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? |
code | 'es' |
cls | <class 'language.controllers.LanguagesControllers'> |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/db/models/query.py
in exists
self._result_cache = None
return query.get_compiler(self.db).execute_sql(CURSOR)
_update.alters_data = True
_update.queryset_only = False
def exists(self):
if self._result_cache is None:
return self.query.has_results(using=self.db)...
return bool(self._result_cache)
def _prefetch_related_objects(self):
# This method can only be called once the result cache has been filled.
prefetch_related_objects(self._result_cache, self._prefetch_related_lookups)
self._prefetch_done = True
Variable | Value |
---|---|
self | Error in formatting: OperationalError: could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/db/models/sql/query.py
in has_results
if q.group_by is True:
q.add_fields((f.attname for f in self.model._meta.concrete_fields), False)
q.set_group_by()
q.clear_select_clause()
q.clear_ordering(True)
q.set_limits(high=1)
compiler = q.get_compiler(using=using)
return compiler.has_results()...
def combine(self, rhs, connector):
"""
Merge the 'rhs' query into the current one (with any 'rhs' effects
being applied *after* (that is, "to the right of") anything in the
current query. 'rhs' is not modified during a call to this function.
Variable | Value |
---|---|
q | <django.db.models.sql.query.Query object at 0x7f81bc4de210> |
using | 'default' |
self | <django.db.models.sql.query.Query object at 0x7f81b9ea3090> |
compiler | <django.db.models.sql.compiler.SQLCompiler object at 0x7f81b9ea37d0> |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py
in has_results
"""
Backends (e.g. NoSQL) can override this in order to use optimized
versions of "query has any results."
"""
# This is always executed on a query clone, so we can modify self.query
self.query.add_extra({'a': 1}, None, None, None, None, None)
self.query.set_extra_mask(['a'])
return bool(self.execute_sql(SINGLE))...
def execute_sql(self, result_type=MULTI):
"""
Run the query against the database and returns the result(s). The
return value is a single data item if result_type is SINGLE, or an
iterator over the results if the result_type is MULTI.
Variable | Value |
---|---|
self | <django.db.models.sql.compiler.SQLCompiler object at 0x7f81b9ea37d0> |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py
in execute_sql
raise EmptyResultSet
except EmptyResultSet:
if result_type == MULTI:
return iter([])
else:
return
cursor = self.connection.cursor()...
try:
cursor.execute(sql, params)
except Exception:
cursor.close()
raise
Variable | Value |
---|---|
self | <django.db.models.sql.compiler.SQLCompiler object at 0x7f81b9ea37d0> |
params | (True, 'es') |
result_type | 'single' |
sql | u'SELECT (1) AS "a" FROM "language_languages" WHERE ("language_languages"."enable" = %s AND "language_languages"."languages_code" = %s) LIMIT 1' |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/db/backends/base/base.py
in cursor
def cursor(self):
"""
Creates a cursor, opening a connection if necessary.
"""
self.validate_thread_sharing()
if self.queries_logged:
cursor = self.make_debug_cursor(self._cursor())...
else:
cursor = self.make_cursor(self._cursor())
return cursor
def commit(self):
"""
Variable | Value |
---|---|
self | <django.contrib.gis.db.backends.postgis.base.DatabaseWrapper object at 0x7f81c4ae8c10> |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/db/backends/base/base.py
in _cursor
if self.connection is None:
with self.wrap_database_errors:
self.connect()
# ##### Backend-specific wrappers for PEP-249 connection methods #####
def _cursor(self):
self.ensure_connection()...
with self.wrap_database_errors:
return self.create_cursor()
def _commit(self):
if self.connection is not None:
with self.wrap_database_errors:
Variable | Value |
---|---|
self | <django.contrib.gis.db.backends.postgis.base.DatabaseWrapper object at 0x7f81c4ae8c10> |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/db/backends/base/base.py
in ensure_connection
def ensure_connection(self):
"""
Guarantees 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 _cursor(self):
self.ensure_connection()
with self.wrap_database_errors:
Variable | Value |
---|---|
self | <django.contrib.gis.db.backends.postgis.base.DatabaseWrapper object at 0x7f81c4ae8c10> |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/db/utils.py
in __exit__
if issubclass(exc_type, db_exc_type):
dj_exc_value = dj_exc_type(*exc_value.args)
dj_exc_value.__cause__ = exc_value
# 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
six.reraise(dj_exc_type, dj_exc_value, traceback)...
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 |
---|---|
self | <django.db.utils.DatabaseErrorWrapper object at 0x7f81bf4566d0> |
traceback | <traceback object at 0x7f81b9ef80e0> |
exc_type | <class 'psycopg2.OperationalError'> |
dj_exc_type | <class 'django.db.utils.OperationalError'> |
dj_exc_value | OperationalError('could not connect to server: Connection refused\n\tIs the server running on host "localhost" (127.0.0.1) and accepting\n\tTCP/IP connections on port 5432?\n',) |
exc_value | OperationalError('could not connect to server: Connection refused\n\tIs the server running on host "localhost" (127.0.0.1) and accepting\n\tTCP/IP connections on port 5432?\n',) |
db_exc_type | <class 'psycopg2.OperationalError'> |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/db/backends/base/base.py
in ensure_connection
def ensure_connection(self):
"""
Guarantees 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 _cursor(self):
self.ensure_connection()
with self.wrap_database_errors:
Variable | Value |
---|---|
self | <django.contrib.gis.db.backends.postgis.base.DatabaseWrapper object at 0x7f81c4ae8c10> |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/db/backends/base/base.py
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.time() + 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': u'hap', 'host': u'localhost', 'password': 'gems_hap2', 'port': u'5432', 'user': u'hap'} |
max_age | 0 |
self | <django.contrib.gis.db.backends.postgis.base.DatabaseWrapper object at 0x7f81c4ae8c10> |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/django/db/backends/postgresql/base.py
in get_new_connection
if settings_dict['HOST']:
conn_params['host'] = settings_dict['HOST']
if settings_dict['PORT']:
conn_params['port'] = settings_dict['PORT']
return conn_params
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': u'hap', 'host': u'localhost', 'password': 'gems_hap2', 'port': u'5432', 'user': u'hap'} |
self | <django.contrib.gis.db.backends.postgis.base.DatabaseWrapper object at 0x7f81c4ae8c10> |
/home/ubuntu/.virtualenvs/pet_api_project/local/lib/python2.7/site-packages/psycopg2/__init__.py
in connect
if 'async_' in kwargs:
kwasync['async_'] = kwargs.pop('async_')
if dsn is None and not kwargs:
raise TypeError('missing dsn and no parameters')
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 |
---|---|
dsn | 'host=localhost password=gems_hap2 user=hap dbname=hap port=5432' |
kwargs | {'database': u'hap', 'host': u'localhost', 'password': 'gems_hap2', 'port': u'5432', 'user': u'hap'} |
connection_factory | None |
kwasync | {} |
cursor_factory | None |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
wsgi.multiprocess | True |
SCRIPT_NAME | u'' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/terms' |
SERVER_PROTOCOL | 'HTTP/1.1' |
QUERY_STRING | '' |
CONTENT_LENGTH | '' |
HTTP_USER_AGENT | 'claudebot' |
SERVER_NAME | 'www.hostapet.com,' |
REMOTE_ADDR | '44.221.43.208' |
wsgi.url_scheme | 'https' |
SERVER_PORT | '443' |
uwsgi.node | 'ip-172-31-30-8' |
DOCUMENT_ROOT | '/usr/share/nginx/html' |
wsgi.input | <uwsgi._Input object at 0x7f81bf37bb28> |
HTTP_HOST | 'www.hostapet.com' |
HTTPS | 'on' |
wsgi.multithread | False |
REQUEST_URI | '/terms' |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
wsgi.run_once | False |
wsgi.errors | <open file 'wsgi_errors', mode 'w' at 0x7f81bf303660> |
REMOTE_PORT | '36184' |
REQUEST_SCHEME | 'https' |
uwsgi.version | '2.0.15' |
CONTENT_TYPE | '' |
wsgi.file_wrapper | '' |
pet_api_project.settings.production
Setting | Value |
---|---|
SECURE_BROWSER_XSS_FILTER | False |
USE_X_FORWARDED_PORT | False |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'es-mx' |
ROOT_URLCONF | 'pet_api_project.urls' |
MANAGERS | [] |
BROKER_URL | u'amqp://guest:guest@localhost:5672/' |
BASE_DIR | Path('/home/ubuntu/pet_api_project/pet_api_project') |
SILENCED_SYSTEM_CHECKS | [] |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_INDEX_TABLESPACE | '' |
STATIC_ROOT | u'/home/ubuntu/static' |
CELERYBEAT_SCHEDULER | 'djcelery.schedulers:DatabaseScheduler' |
ALLOWED_HOSTS | ['*', u'172.31.30.8', '13.52.63.213'] |
GOOGLE_MAPS_API_KEY | u'********************' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '' |
SERVER_EMAIL | 'soporte@hostapet.com' |
SECURE_HSTS_SECONDS | 0 |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
AWS_TRANSCODER_HLS_BUCKET | u'host-a-pet-video-hls' |
SESSION_CACHE_ALIAS | 'default' |
CELERY_IMPORTS | ('celery.task.http', 'core.tasks', 'services.controllers', 'services.tasks', 'hosts.controllers', 'email_app.controllers') |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
LOCALE_PATHS | [Path('/home/ubuntu/pet_api_project/pet_api_project/locale')] |
AWS_STORAGE_BUCKET_NAME | u'host-a-pet-p' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
SECURE_REDIRECT_EXEMPT | [] |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'HOST': u'localhost', 'NAME': u'hap', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': u'5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': u'hap'}} |
EMAIL_SSL_KEYFILE | u'********************' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
DEFAULT_CONTENT_TYPE | 'text/html' |
API_TRANSACTION_KEY | u'********************' |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
DEFAULT_TABLESPACE | '' |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
SESSION_COOKIE_PATH | '/' |
EMAIL_HOST_PASSWORD | u'********************' |
SLACK_CHANNEL_ID | u'GD9M5ATTP' |
SECURE_CONTENT_TYPE_NOSNIFF | False |
MIDDLEWARE_CLASSES | [u'raven.contrib.django.middleware.DjangoRestFrameworkCompatMiddleware', u'raven.contrib.django.middleware.SentryMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.http.ConditionalGetMiddleware', 'core.exceptions.ExceptionMiddleware.ExceptionMiddleware', 'core.middleware.CORSMiddleware.CORSMiddleware', 'django_globals.middleware.Global', 'core.middleware.LoggingMiddleware.LoggingMiddleware'] |
SLACK_NEW_USERS_CHANNEL_ID | u'GDY6K0JAY' |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
FILE_UPLOAD_TEMP_DIR | None |
LOGGING_CONFIG | 'logging.config.dictConfig' |
SESSION_COOKIE_AGE | 1209600 |
TEMPLATE_LOADERS | ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'] |
AWS_TRANSCODER_PIPELINE_ID | u'1528431800810-57qrmi' |
WSGI_APPLICATION | 'pet_api_project.wsgi.application' |
TEMPLATE_DEBUG | False |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
HUBSPOT_HAPKEY | u'********************' |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
AWS_S3_SECURE_URLS | True |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
EMAIL_TIMEOUT | None |
SECURE_SSL_HOST | None |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
EC2_PRIVATE_IP | u'172.31.30.8' |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
CSRF_TRUSTED_ORIGINS | [] |
INTERNAL_IPS | [] |
AWS_ACCESS_KEY_ID | u'********************' |
DEFAULT_FILE_STORAGE | 'storages.backends.s3boto.S3BotoStorage' |
INSTALLED_APPS | ['balances.apps.BalancesConfig', 'charges', 'chats', 'configuration.apps.ConfigurationConfig', 'core', 'coupons', 'error_messages', 'faqs', 'geography', 'hosts', 'media_mentions', 'pets', 'profiles.apps.ProfilesConfig', 'referrals', 'reports', 'services', 'terms', 'users', 'web', 'email_app', 'language', 'djcelery', 'widget_tweaks', 'rest_framework', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.gis', 'django.contrib.postgres', 'raven.contrib.django.raven_compat'] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
USE_L10N | True |
FCM_KEY | u'********************' |
AWS_TRANSCODER_PRESET_ID | u'1528433656047-15pzlk' |
STATICFILES_DIRS | (Path('/home/ubuntu/pet_api_project/pet_api_project/static'), Path('/home/ubuntu/pet_api_project/pet_api_project/templates')) |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
LANGUAGE_COOKIE_AGE | None |
SESSION_COOKIE_HTTPONLY | True |
AWS_SECRET_ACCESS_KEY | u'********************' |
DEBUG_PROPAGATE_EXCEPTIONS | False |
CSRF_COOKIE_DOMAIN | None |
MONTH_DAY_FORMAT | 'F j' |
AWS_QUERYSTRING_AUTH | False |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
RAVEN_CONFIG | {'dsn': u'https://8dd0592046f64fecb38793f2324beae3@sentry.io/1292350'} |
TIME_FORMAT | 'P' |
AUTH_USER_MODEL | 'auth.User' |
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'] |
AWS_TRANSCODER_THUMBNAIL_BUCKET | u'host-a-pet-video-thumbnails' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | u'********************' |
CELERY_DISABLE_RATE_LIMITS | True |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
LANGUAGE_COOKIE_DOMAIN | None |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
NUMBER_GROUPING | 0 |
GOOGLE_ANDROID_CLIENT_ID | u'293702277119-dgurlkpn0k8mc9cmop83uoigrmmhmuf7.apps.googleusercontent.com' |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
EMAIL_ADDRESS_INTERNAL | u'Host a Pet <soporte@hostapet.com>' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
ABSOLUTE_URL_OVERRIDES | {} |
GOOGLE_WEB_CLIENT_ID | u'293702277119-p9ise3df0ic73llq3qven768taie6iqm.apps.googleusercontent.com' |
DECIMAL_SEPARATOR | '.' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
CSRF_COOKIE_PATH | '/' |
TEMPLATE_STRING_IF_INVALID | '' |
SESSION_FILE_PATH | None |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | True |
CONEKTA_PUBLIC_KEY | u'********************' |
CONEKTA_PRIVATE_KEY | u'********************' |
FIXTURE_DIRS | [] |
EMAIL_HOST | u'email-smtp.us-east-1.amazonaws.com' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | Path('/home/ubuntu/pet_api_project/pet_api_project/media') |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | [] |
SLACK_TOKEN_BOT | u'********************' |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
REST_FRAMEWORK | {'DEFAULT_AUTHENTICATION_CLASSES': ('core.restframework.auth.HAPTokenAuthentication', 'rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.BasicAuthentication'), 'DEFAULT_PERMISSION_CLASSES': ('core.restframework.permission.IsHAPAuthenticated',), 'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer',)} |
MEDIA_URL | '/media/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | [] |
CELERY_ACCEPT_CONTENT | ['pickle', 'json'] |
SLACK_ERROR_CHANNEL_ID | u'GDCC6B3KN' |
CYPHER_SECRET | u'********************' |
DISALLOWED_USER_AGENTS | [] |
ALLOWED_INCLUDE_ROOTS | [] |
USE_I18N | True |
WEB_HOST | 'https://hostapet.com' |
LOGGING | {'disable_existing_loggers': False, 'formatters': {'verbose': {'format': '%(asctime)s | %(levelname)s | %(message)s'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'verbose', 'level': 'DEBUG'}, 'file': {'class': 'logging.FileHandler', 'filename': u'/home/ubuntu/.host_a_pet/core/log/log_file.log', 'formatter': 'verbose', 'level': 'DEBUG'}}, 'loggers': {'django.request': {'handlers': ['file'], 'level': 'DEBUG', 'propagate': True}}, 'version': 1} |
SHORT_DATE_FORMAT | 'm/d/Y' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [Path('/home/ubuntu/pet_api_project/pet_api_project/static'), Path('/home/ubuntu/pet_api_project/pet_api_project/templates')], 'OPTIONS': {'context_processors': ['django.template.context_processors.static', 'django.template.context_processors.media', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
CORE_LOGGING_PATH_FILE | u'/home/ubuntu/.host_a_pet/core/log/log_file.log' |
GOOGLE_IOS_CLIENT_ID | u'293702277119-06c1kviasu8fvdeahqmga98fhrvepmq7.apps.googleusercontent.com' |
STRIPE_PRIVATE_KEY | u'********************' |
IGNORABLE_404_URLS | [] |
SECURE_SSL_REDIRECT | False |
TIME_ZONE | 'America/Mexico_City' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django_smtp_ssl.SSLEmailBackend' |
EMAIL_USE_SSL | False |
TEMPLATE_CONTEXT_PROCESSORS | ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages'] |
MIGRATION_MODULES | {} |
API_LOGIN | u'********************' |
SETTINGS_MODULE | 'pet_api_project.settings.production' |
USE_ETAGS | False |
LANGUAGES | [('af', 'Afrikaans'), ('ar', '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'), ('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'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
AWS_TRANSCODER_REGION | u'us-west-1' |
CSRF_COOKIE_AGE | 31449600 |
STATIC_URL | '/static/' |
EMAIL_PORT | 465 |
USE_TZ | True |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
CELERY_RESULT_BACKEND | 'amqp' |
TEST_NON_SERIALIZED_APPS | [] |
PASSWORD_HASHERS | u'********************' |
EMAIL_ADDRESS_STAFF | u'Host a Pet <soporte.hostapet@gmail.com>' |
LANGUAGE_COOKIE_PATH | '/' |
CACHE_MIDDLEWARE_SECONDS | 600 |
EMAIL_SSL_CERTFILE | None |
CSRF_COOKIE_HTTPONLY | False |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
EMAIL_HOST_USER | u'AKIAI6D2V4LHOXKTC2FQ' |
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.