Invalid HTTP_HOST header: 'web1.mortonbuildings.com'. You may need to add 'web1.mortonbuildings.com' to ALLOWED_HOSTS.
Request Method: | GET |
---|---|
Request URL: | http://web1.mortonbuildings.com/project-catalog/commercial?building-use[]=6951 |
Django Version: | 4.1.1 |
Exception Type: | DisallowedHost |
Exception Value: | Invalid HTTP_HOST header: 'web1.mortonbuildings.com'. You may need to add 'web1.mortonbuildings.com' to ALLOWED_HOSTS. |
Exception Location: | /usr/local/lib/python3.9/site-packages/django/http/request.py, line 148, in get_host |
Python Executable: | /usr/local/bin/python |
Python Version: | 3.9.0 |
Python Path: | ['.', '/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'] |
Server time: | Thu, 28 Mar 2024 20:00:56 +0100 |
/usr/local/lib/python3.9/site-packages/asgiref/sync.py
, line 472, in thread_handler
parent_set = True
# Run the function
try:
# If we have an exception, run the function inside the except block
# after raising it so exc_info is correctly populated.
if exc_info[1]:
try:
raise exc_info[1]…
except BaseException:
return func(*args, **kwargs)
else:
return func(*args, **kwargs)
finally:
# Only delete the launch_map parent if we set it, otherwise it is
Variable | Value |
---|---|
args | (functools.partial(<function response_for_exception at 0x7f19c484eca0>, <ASGIRequest: GET '/project-catalog/commercial?building-use[]=6951'>, DisallowedHost("Invalid HTTP_HOST header: 'web1.mortonbuildings.com'. You may need to add 'web1.mortonbuildings.com' to ALLOWED_HOSTS.")),) |
current_thread | <Thread(asyncio_0, started 139748060411648)> |
exc_info | (<class 'django.core.exceptions.DisallowedHost'>, DisallowedHost("Invalid HTTP_HOST header: 'web1.mortonbuildings.com'. You may need to add 'web1.mortonbuildings.com' to ALLOWED_HOSTS."), <traceback object at 0x7f1985db41c0>) |
func | <built-in method run of Context object at 0x7f19c00de9c0> |
kwargs | {} |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
parent_set | True |
self | <asgiref.sync.SyncToAsync object at 0x7f19a3f95e50> |
source_task | <Task pending name='Task-24553' coro=<AsyncToSync.main_wrap() running at /usr/local/lib/python3.9/site-packages/asgiref/sync.py:284> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.9/asyncio/futures.py:384, <TaskWakeupMethWrapper object at 0x7f19b8b030d0>()]> cb=[_run_until_complete_cb() at /usr/local/lib/python3.9/asyncio/base_events.py:184]> |
/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py
, line 42, in inner
can rely on getting a response instead of an exception.
"""
if asyncio.iscoroutinefunction(get_response):
@wraps(get_response)
async def inner(request):
try:
response = await get_response(request)…
except Exception as exc:
response = await sync_to_async(
response_for_exception, thread_sensitive=False
)(request, exc)
return response
Variable | Value |
---|---|
exc | DisallowedHost("Invalid HTTP_HOST header: 'web1.mortonbuildings.com'. You may need to add 'web1.mortonbuildings.com' to ALLOWED_HOSTS.") |
get_response | <django.middleware.common.CommonMiddleware object at 0x7f19c0a46970> |
request | <ASGIRequest: GET '/project-catalog/commercial?building-use[]=6951'> |
/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/django/asgi.py
, line 153, in __acall__
middleware_span = _check_middleware_span(old_method=f)
if middleware_span is None:
return await f(*args, **kwargs)
with middleware_span:
return await f(*args, **kwargs)…
return SentryASGIMixin
Variable | Value |
---|---|
_check_middleware_span | <function _wrap_middleware.<locals>._check_middleware_span at 0x7f19c0a38a60> |
args | (<ASGIRequest: GET '/project-catalog/commercial?building-use[]=6951'>,) |
f | <bound method MiddlewareMixin.__acall__ of <CommonMiddleware get_response=convert_exception_to_response.<locals>.inner>> |
kwargs | {} |
middleware_span | <Span(op='middleware.django', description:'django.middleware.common.CommonMiddleware.__acall__', trace_id='a41e7e4e35ce451bb59a418755e8fe0f', span_id='aa0bfe5b405a71f6', parent_span_id='8fb417eb838444dd', sampled=True)> |
self | <django.middleware.common.CommonMiddleware object at 0x7f19c0a46970> |
/usr/local/lib/python3.9/site-packages/django/utils/deprecation.py
, line 148, in __acall__
async def __acall__(self, request):
"""
Async version of __call__ that is swapped in when an async request
is running.
"""
response = None
if hasattr(self, "process_request"):
response = await sync_to_async(…
self.process_request,
thread_sensitive=True,
)(request)
response = response or await self.get_response(request)
if hasattr(self, "process_response"):
response = await sync_to_async(
Variable | Value |
---|---|
request | <ASGIRequest: GET '/project-catalog/commercial?building-use[]=6951'> |
response | None |
self | <CommonMiddleware get_response=convert_exception_to_response.<locals>.inner> |
/usr/local/lib/python3.9/site-packages/asgiref/sync.py
, line 435, in __call__
self.get_current_task(),
sys.exc_info(),
func,
*args,
**kwargs,
),
)
ret = await asyncio.wait_for(future, timeout=None)…
finally:
_restore_context(context)
if self.deadlock_context:
self.deadlock_context.set(False)
Variable | Value |
---|---|
args | (functools.partial(<bound method CommonMiddleware.process_request of <CommonMiddleware get_response=convert_exception_to_response.<locals>.inner>>, <ASGIRequest: GET '/project-catalog/commercial?building-use[]=6951'>),) |
child | functools.partial(<bound method CommonMiddleware.process_request of <CommonMiddleware get_response=convert_exception_to_response.<locals>.inner>>, <ASGIRequest: GET '/project-catalog/commercial?building-use[]=6951'>) |
context | <Context object at 0x7f19a19e1140> |
executor | <asgiref.current_thread_executor.CurrentThreadExecutor object at 0x7f19b9cbacd0> |
func | <built-in method run of Context object at 0x7f19a19e1140> |
future | <Future finished exception=DisallowedHost("Invalid HTTP_HOST header: 'web1.mortonbuildings.com'. You may need to add 'web1.mortonbuildings.com' to ALLOWED_HOSTS.")> |
kwargs | {} |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
self | <asgiref.sync.SyncToAsync object at 0x7f19a3f953d0> |
/usr/local/lib/python3.9/asyncio/tasks.py
, line 440, in wait_for
loop = events.get_running_loop()
else:
warnings.warn("The loop argument is deprecated since Python 3.8, "
"and scheduled for removal in Python 3.10.",
DeprecationWarning, stacklevel=2)
if timeout is None:
return await fut…
if timeout <= 0:
fut = ensure_future(fut, loop=loop)
if fut.done():
return fut.result()
Variable | Value |
---|---|
fut | <Future finished exception=DisallowedHost("Invalid HTTP_HOST header: 'web1.mortonbuildings.com'. You may need to add 'web1.mortonbuildings.com' to ALLOWED_HOSTS.")> |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
timeout | None |
/usr/local/lib/python3.9/site-packages/asgiref/current_thread_executor.py
, line 22, in run
self.args = args
self.kwargs = kwargs
def run(self):
if not self.future.set_running_or_notify_cancel():
return
try:
result = self.fn(*self.args, **self.kwargs)…
except BaseException as exc:
self.future.set_exception(exc)
# Break a reference cycle with the exception 'exc'
self = None
else:
self.future.set_result(result)
Variable | Value |
---|---|
self | None |
/usr/local/lib/python3.9/site-packages/asgiref/sync.py
, line 476, in thread_handler
# after raising it so exc_info is correctly populated.
if exc_info[1]:
try:
raise exc_info[1]
except BaseException:
return func(*args, **kwargs)
else:
return func(*args, **kwargs)…
finally:
# Only delete the launch_map parent if we set it, otherwise it is
# from someone else.
if parent_set:
del self.launch_map[current_thread]
Variable | Value |
---|---|
args | (functools.partial(<bound method CommonMiddleware.process_request of <CommonMiddleware get_response=convert_exception_to_response.<locals>.inner>>, <ASGIRequest: GET '/project-catalog/commercial?building-use[]=6951'>),) |
current_thread | <Thread(ThreadPoolExecutor-9749_0, started 139747808757504)> |
exc_info | (None, None, None) |
func | <built-in method run of Context object at 0x7f19a19e1140> |
kwargs | {} |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
parent_set | False |
self | <asgiref.sync.SyncToAsync object at 0x7f19a3f953d0> |
source_task | <Task pending name='Task-24553' coro=<AsyncToSync.main_wrap() running at /usr/local/lib/python3.9/site-packages/asgiref/sync.py:284> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.9/asyncio/futures.py:384, <TaskWakeupMethWrapper object at 0x7f19b8b030d0>()]> cb=[_run_until_complete_cb() at /usr/local/lib/python3.9/asyncio/base_events.py:184]> |
/usr/local/lib/python3.9/site-packages/django/middleware/common.py
, line 48, in process_request
user_agent = request.META.get("HTTP_USER_AGENT")
if user_agent is not None:
for user_agent_regex in settings.DISALLOWED_USER_AGENTS:
if user_agent_regex.search(user_agent):
raise PermissionDenied("Forbidden user agent")
# Check for a redirect based on settings.PREPEND_WWW
host = request.get_host()…
must_prepend = settings.PREPEND_WWW and host and not host.startswith("www.")
redirect_url = ("%s://www.%s" % (request.scheme, host)) if must_prepend else ""
# Check if a slash should be appended
if self.should_redirect_with_slash(request):
path = self.get_full_path_with_slash(request)
Variable | Value |
---|---|
request | <ASGIRequest: GET '/project-catalog/commercial?building-use[]=6951'> |
self | <CommonMiddleware get_response=convert_exception_to_response.<locals>.inner> |
user_agent | 'claudebot' |
/usr/local/lib/python3.9/site-packages/django/http/request.py
, line 148, in get_host
msg = "Invalid HTTP_HOST header: %r." % host
if domain:
msg += " You may need to add %r to ALLOWED_HOSTS." % domain
else:
msg += (
" The domain name provided is not valid according to RFC 1034/1035."
)
raise DisallowedHost(msg)…
def get_port(self):
"""Return the port number for the request as a string."""
if settings.USE_X_FORWARDED_PORT and "HTTP_X_FORWARDED_PORT" in self.META:
port = self.META["HTTP_X_FORWARDED_PORT"]
else:
Variable | Value |
---|---|
allowed_hosts | ['https://dashboard.everestmobility.co', 'dashboard.everestmobility.co', '23.92.28.85'] |
domain | 'web1.mortonbuildings.com' |
host | 'web1.mortonbuildings.com' |
msg | ("Invalid HTTP_HOST header: 'web1.mortonbuildings.com'. You may need to add " "'web1.mortonbuildings.com' to ALLOWED_HOSTS.") |
port | '' |
self | <ASGIRequest: GET '/project-catalog/commercial?building-use[]=6951'> |
[unable to retrieve the current user]
Variable | Value |
---|---|
building-use[] | '6951' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'web1.mortonbuildings.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '54.165.122.173' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_REAL_IP | '54.165.122.173' |
PATH_INFO | '/project-catalog/commercial' |
QUERY_STRING | 'building-use[]=6951' |
REMOTE_ADDR | '172.18.0.5' |
REMOTE_HOST | '172.18.0.5' |
REMOTE_PORT | 53208 |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '172.18.0.4' |
SERVER_PORT | '8000' |
wsgi.multiprocess | True |
wsgi.multithread | True |
evr_api.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ADMIN_MEDIA_PREFIX | '/static/admin/' |
ALLOWED_HOSTS | ['https://dashboard.everestmobility.co', 'dashboard.everestmobility.co', '23.92.28.85'] |
APPEND_SLASH | True |
ASGI_APPLICATION | 'evr_api.asgi.application' |
AUTHENTICATION_BACKENDS | ('users.custom_auth_backend.PasswordlessAuthBackend',) |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'users.User' |
AWS_ACCESS_KEY_ID | '********************' |
AWS_DEFAULT_ACL | None |
AWS_LOCATION | 'static' |
AWS_REGION | 'us-west-1' |
AWS_S3_FILE_OVERWRITE | False |
AWS_S3_REGION_NAME | 'us-west-1' |
AWS_SECRET_ACCESS_KEY | '********************' |
AWS_STORAGE_BUCKET_NAME | 'everest-mob-bucket' |
BASE_DIR | PosixPath('/code') |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CACHE_TTL_ONE_HOUR | 3600 |
CACHE_TTL_TEMP | 45 |
CHANNEL_LAYERS | {'default': {'BACKEND': 'channels.layers.InMemoryChannelLayer'}} |
CORS_ALLOWED_ORIGINS | ['https://dashboard.everestmobility.co', 'http://dashboard.everestmobility.co'] |
CORS_ALLOW_CREDENTIALS | True |
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 | ['https://dashboard.everestmobility.co', 'http://dashboard.everestmobility.co'] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': None, 'ENGINE': 'django.db.backends.postgresql', 'HOST': 'everest-db.cty5rtq3hlrz.us-west-1.rds.amazonaws.com', 'NAME': 'everest_main_db', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', '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 | 1 |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DEBUG_TOOLBAR_CONFIG | {'INSERT_BEFORE': '</head>', 'SHOW_TOOLBAR_CALLBACK': <function show_toolbar at 0x7f19c3a883a0>} |
DEBUG_TOOLBAR_PANELS | ['debug_toolbar.panels.history.HistoryPanel', 'debug_toolbar.panels.versions.VersionsPanel', 'debug_toolbar.panels.timer.TimerPanel', 'debug_toolbar.panels.settings.SettingsPanel', 'debug_toolbar.panels.headers.HeadersPanel', 'debug_toolbar.panels.request.RequestPanel', 'debug_toolbar.panels.sql.SQLPanel', 'debug_toolbar.panels.staticfiles.StaticFilesPanel', 'debug_toolbar.panels.templates.TemplatesPanel', 'debug_toolbar.panels.cache.CachePanel', 'debug_toolbar.panels.signals.SignalsPanel', 'debug_toolbar.panels.redirects.RedirectsPanel', 'debug_toolbar.panels.profiling.ProfilingPanel'] |
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.s3boto3.S3Boto3Storage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtppro.zoho.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'no-reply@everestmobility.co' |
EMAIL_PORT | 465 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | True |
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' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['daphne', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'whitenoise.runserver_nostatic', 'django.contrib.staticfiles', 'django.contrib.humanize', 'rest_framework', 'django_db_logger', 'coreapi', 'rest_framework_swagger', 'corsheaders', 'storages', 'sweetify', 'debug_toolbar', 'users.apps.UsersConfig', 'rides.apps.RidesConfig', 'points.apps.PointsConfig', 'dashboard.apps.DashboardConfig', 'wallet.apps.WalletConfig', 'drivers.apps.DriversConfig', 'payments.apps.PaymentsConfig', 'pages.apps.PagesConfig', 'transactions.apps.TransactionsConfig', 'subscriptions.apps.SubscriptionsConfig', 'referrals.apps.ReferralsConfig', 'webhooks.apps.WebhooksConfig', 'websockets.apps.WebsocketsConfig', 'notifications.apps.NotificationsConfig'] |
INTERNAL_IPS | ('127.0.0.1',) |
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 |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': True, 'formatters': {'default': {'format': '[%(asctime)s] ' '%(levelname)s::(%(process)d ' '%(thread)d)::%(module)s - %(message)s'}}, 'handlers': {'db_log': {'class': 'django_db_logger.db_log_handler.DatabaseLogHandler', 'level': 'DEBUG'}, 'debug_console': {'class': 'logging.StreamHandler', 'formatter': 'default', 'level': 'INFO'}}, 'loggers': {'db': {'handlers': ['db_log'], 'level': 'DEBUG'}, 'django': {'handlers': ['debug_console'], 'propagate': True}, 'django.request': {'handlers': ['debug_console', 'db_log'], 'level': 'ERROR', 'propagate': True}, 'django.security.DisallowedHost': {'handlers': ['db_log', 'debug_console'], 'level': 'ERROR', 'propagate': False}, 'logistics': {'handlers': ['debug_console'], 'level': 'INFO', 'propagate': True}}, 'propagate': True, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_TTL_IN_MINUTES | 43200 |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/code/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['debug_toolbar.middleware.DebugToolbarMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'rollbar.contrib.django.middleware.RollbarNotifierMiddleware'] |
MIGRATION_MODULES | {} |
MISC_FILES_UPLOAD_PATH | 'uploads/attachments/misc' |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PREPEND_WWW | False |
PROFILE_PHOTO_UPLOAD_PATH | 'uploads/profile' |
REST_FRAMEWORK | {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_simplejwt.authentication.JWTAuthentication',), 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', 'DEFAULT_PARSER_CLASSES': ['rest_framework.parsers.JSONParser', 'rest_framework.parsers.FormParser', 'rest_framework.parsers.MultiPartParser'], 'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.AllowAny'], 'DEFAULT_RENDERER_CLASSES': ['rest_framework.renderers.JSONRenderer'], 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema', 'NON_FIELD_ERRORS_KEY': '********************', 'ORDERING_PARAM': 'ordering', 'PAGE_SIZE': 12, 'SEARCH_PARAM': 'search', 'TEST_REQUEST_RENDERER_CLASSES': ['rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.MultiPartRenderer']} |
ROOT_URLCONF | 'evr_api.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 | 'evr_api.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SIMPLE_JWT | {'ACCESS_TOKEN_LIFETIME': '********************', 'ALGORITHM': 'HS256', 'AUDIENCE': None, 'AUTH_HEADER_NAME': 'HTTP_AUTHORIZATION', 'AUTH_HEADER_TYPES': ('Bearer',), 'AUTH_TOKEN_CLASSES': '********************', 'BLACKLIST_AFTER_ROTATION': True, 'ISSUER': None, 'JTI_CLAIM': 'jti', 'REFRESH_TOKEN_LIFETIME': '********************', 'ROTATE_REFRESH_TOKENS': '********************', 'SIGNING_KEY': '********************', 'SLIDING_TOKEN_LIFETIME': '********************', 'SLIDING_TOKEN_REFRESH_EXP_CLAIM': '********************', 'SLIDING_TOKEN_REFRESH_LIFETIME': '********************', 'TOKEN_TYPE_CLAIM': '********************', 'UPDATE_LAST_LOGIN': False, 'USER_ID_CLAIM': 'id', 'USER_ID_FIELD': 'id', 'VERIFYING_KEY': '********************'} |
SMS_BACKEND | 'sms.backends.console.SmsBackend' |
STATICFILES_DIRS | ['/code/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'storages.backends.s3boto3.S3Boto3Storage' |
STATIC_ROOT | '/code/staticfiles' |
STATIC_URL | '/static/' |
SWEETIFY_SWEETALERT_LIBRARY | 'sweetalert2' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/code/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 | 'Africa/Lagos' |
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 | None |
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.