[AlbumService.Directory.AlbumDirectory.Request.UserConfiguration] is not valid.
Request Method: | GET |
---|---|
Request URL: | http://preview.albumepoca.com/previews/product/Album/113407/ |
Django Version: | 2.0.13 |
Exception Type: | PMSValidationException |
Exception Value: | [AlbumService.Directory.AlbumDirectory.Request.UserConfiguration] is not valid. |
Exception Location: | /usr/local/lib/python3.7/site-packages/sidecar/utils.py in rpc_producer_call, line 122 |
Python Executable: | /usr/local/bin/python |
Python Version: | 3.7.10 |
Python Path: | ['/var/src', '/usr/local/bin', '/usr/local/lib/python37.zip', '/usr/local/lib/python3.7', '/usr/local/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/site-packages'] |
Server time: | Thu, 28 Mar 2024 17:07:28 +0000 |
/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@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 | PMSValidationException() |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f0161a2ef90>> |
request | <WSGIRequest: GET '/previews/product/Album/113407/'> |
/usr/local/lib/python3.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 |
---|---|
callback | <function professional_preview_by_configuration_uuid at 0x7f01609c85f0> |
callback_args | () |
callback_kwargs | {'configuration_uuid': '113407', 'product_type': 'Album'} |
middleware_method | <function CsrfViewMiddleware.process_view at 0x7f01609c8f80> |
request | <WSGIRequest: GET '/previews/product/Album/113407/'> |
resolver | <URLResolver 'PREVIEW_SERVICE.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=previews.views.professional_preview_by_configuration_uuid, args=(), kwargs={'product_type': 'Album', 'configuration_uuid': '113407'}, url_name=professional_preview_by_configuration_uuid, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f0161a2ef90> |
wrapped_callback | <function professional_preview_by_configuration_uuid at 0x7f01609c85f0> |
/usr/local/lib/python3.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 |
---|---|
callback | <function professional_preview_by_configuration_uuid at 0x7f01609c85f0> |
callback_args | () |
callback_kwargs | {'configuration_uuid': '113407', 'product_type': 'Album'} |
middleware_method | <function CsrfViewMiddleware.process_view at 0x7f01609c8f80> |
request | <WSGIRequest: GET '/previews/product/Album/113407/'> |
resolver | <URLResolver 'PREVIEW_SERVICE.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=previews.views.professional_preview_by_configuration_uuid, args=(), kwargs={'product_type': 'Album', 'configuration_uuid': '113407'}, url_name=professional_preview_by_configuration_uuid, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f0161a2ef90> |
wrapped_callback | <function professional_preview_by_configuration_uuid at 0x7f01609c85f0> |
/var/src/previews/views/__init__.py
in professional_preview_by_configuration_uuid
return render(request, template, context)
def professional_preview_by_configuration_uuid(request, product_type, configuration_uuid):
if product_type == 'HomeDecor':
return homedecor_preview(request, configuration_uuid)
configuration = professional_configuration(None, configuration_uuid, product_type)...
if configuration:
return professional_preview_by_configuration(request, product_type, configuration)
def get_cover_svg(product_type, configuration_id, configuration_uuid, cover_with_photo_project_id):
catalog = 'PhotosiMessage.{}Directory'.format(product_type)
Variable | Value |
---|---|
configuration_uuid | '113407' |
product_type | 'Album' |
request | <WSGIRequest: GET '/previews/product/Album/113407/'> |
/var/src/previews/views/__init__.py
in professional_configuration
message_body = {
'id': configuration_id,
'code': configuration_uuid,
'languageCode': get_language()[:2]
}
try:
configuration = rpc_call_with_serializers(catalog, message, message_body, response_serializer=ConfigurationResponseSerializer)...
cover_with_photo_project_id = configuration.get('cover_with_photo_project_id') if configuration.get('album_cover_photo_type') == 'FOTO' else None
svg_info = get_cover_svg(product_type, configuration['id'], configuration['guid'], cover_with_photo_project_id)
configuration.update({
Variable | Value |
---|---|
catalog | 'PhotosiMessage.AlbumDirectory' |
configuration_id | None |
configuration_uuid | '113407' |
message | 'UserConfiguration' |
message_body | {'code': '113407', 'id': None, 'languageCode': 'en'} |
product_type | 'Album' |
/usr/local/lib/python3.7/site-packages/pms/frameworks/django/utils.py
in rpc_call_with_serializers
raise PMSValidationException(message=message, detail=exc)
else:
request_message_body = body
# Call Message ######################
# -----------------------------------
message_response = rpc_producer_call(
catalog=catalog, message=message, request_message_body=request_message_body...
)
if response_serializer:
# Serialize Response Message ########
# -----------------------------------
try:
Variable | Value |
---|---|
body | {'code': '113407', 'id': None, 'languageCode': 'en'} |
catalog | 'PhotosiMessage.AlbumDirectory' |
message | 'UserConfiguration' |
request_message_body | {'code': '113407', 'id': None, 'languageCode': 'en'} |
request_serializer | None |
response_serializer | <class 'previews.serializers.ConfigurationResponseSerializer'> |
/usr/local/lib/python3.7/site-packages/pms/frameworks/django/utils.py
in rpc_producer_call
def subscriber_publish(catalog, message, body, suffix="", topic=None):
publish(catalog, message, body, suffix, topic)
def rpc_producer_call(catalog, message, request_message_body):
return rpc_call(catalog, message, request_message_body)...
def rpc_call_with_serializers(
catalog, message, body, request_serializer=None, response_serializer=None
):
if request_serializer:
Variable | Value |
---|---|
catalog | 'PhotosiMessage.AlbumDirectory' |
message | 'UserConfiguration' |
request_message_body | {'code': '113407', 'id': None, 'languageCode': 'en'} |
/usr/local/lib/python3.7/site-packages/pms/utils/producers.py
in rpc_call
suffix = topic
subscriber_publish(catalog, message, body, suffix)
def rpc_call(catalog, message, request_message_body):
rpc_timeout = settings.PMS_RPC_TIMEOUT * 1000
response = rpc_producer_call(
catalog, message, request_message_body, timeout=rpc_timeout...
)
return response
Variable | Value |
---|---|
catalog | 'PhotosiMessage.AlbumDirectory' |
message | 'UserConfiguration' |
request_message_body | {'code': '113407', 'id': None, 'languageCode': 'en'} |
rpc_timeout | 10000 |
/usr/local/lib/python3.7/site-packages/sidecar/utils.py
in rpc_producer_call
with tracer.trace(span_name) as span:
span.set_meta("node_name", socket.gethostname())
body, status_code = __perform_request(url, data, additional_headers=__tracing_headers(span.context))
else:
body, status_code = __perform_request(url, data)
if status_code == 550:
raise normalize_exceptions(json.loads(body))...
if status_code == 0 or status_code > 299:
logger.fatal(
"SideCar HTTP Request failed",
extra={"message_body": body, "catalog": catalog, "message_name": message},
)
Variable | Value |
---|---|
body | ('{"ExceptionCode":"INVALID_MESSAGE","ExceptionMessage":"[AlbumService.Directory.AlbumDirectory.Request.UserConfiguration] ' 'is not ' 'valid.","ExceptionDetail":"[{\\"propertyName\\":[\\"Code\\",\\"Id\\"],\\"message\\":\\"Invalid ' '\'Code\' or \'Id\'. At least one of them must be valid.\\"}]"}') |
catalog | 'AlbumDirectory' |
data | '{"id": null, "code": "113407", "languageCode": "en"}' |
message | 'UserConfiguration' |
span | <Span(id=1051275416153464793,trace_id=6775827258913584760,parent_id=None,name=RPC AlbumDirectory:UserConfiguration)> |
span_name | 'RPC AlbumDirectory:UserConfiguration' |
status_code | 550 |
timeout | 10000 |
url | 'http://127.0.0.1:8005/publish/rpc/?name=UserConfiguration&directory=AlbumDirectory&timeout=10000' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'preview.albumepoca.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '127.0.0.1, 10.20.109.213' |
HTTP_X_FORWARDED_HOST | 'preview.albumepoca.com' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_FORWARDED_SCHEME | 'https' |
HTTP_X_REAL_IP | '127.0.0.1' |
HTTP_X_REQUEST_ID | '5b9d1de13f393d52775901300dbaa0a4' |
HTTP_X_SCHEME | 'https' |
PATH_INFO | '/previews/product/Album/113407/' |
QUERY_STRING | '' |
RAW_URI | '/previews/product/Album/113407/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'preview.albumepoca.com' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.0.4' |
gunicorn.socket | <socket.socket fd=10, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/var/www/web.socket> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f0160585490> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f0160585190> |
wsgi.input_terminated | True |
wsgi.multiprocess | False |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
PREVIEW_SERVICE.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ADMIN_TOOLS_INDEX_DASHBOARD | 'intranet_admin.dashboard.IndexIntranetDashboard' |
ADMIN_TOOLS_MENU | 'intranet_admin.menu.IntranetMenu' |
AEVELOCE_CODE | 'EditorResponsive' |
ALBUM | 'Album' |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('django_auth_client.auth.PIFUserBackend',) |
AUTH_BASE_URI | 'https://auth.test.photosi.com' |
AUTH_LOGIN_MODEL | 'django_auth_client.account.User' |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_PIF_OAUTH2_KEY | '********************' |
AUTH_PIF_OAUTH2_SECRET | '********************' |
AUTH_PIF_URL | '/oauth2/authorize/' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/var/src' |
CACHES | {'default': {'BACKEND': 'cache_fallback.FallbackCache'}, 'fallback_cache': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': 'unique'}, 'main_cache': {'BACKEND': 'django_redis.cache.RedisCache', 'KEY_PREFIX': '********************', 'LOCATION': 'redis://127.0.0.1:6379/1', 'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CONSUMER_PREVIEW_BASE_URL | 'https://preview-service.photoforse.online' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
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 |
CURRENT_ENV | 'develop' |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'psql.photosi.com', 'NAME': 'preview-service_master', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'preview-service'}} |
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', '%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'] |
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_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
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 | [] |
EDITOR_VELOCE_CATALOG | 'PhotosiMessage.NinjaEditorDirectory' |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.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 |
EVENT_BOOK | 'EventBook' |
FILE_CHARSET | 'utf-8' |
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 | None |
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' |
FULL_SERVICE_DESIGN_CODE | 'FullServiceDesign' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['intranet_admin', 'intranet_admin.admin_tools_app.IntranetMenuConfig', 'intranet_admin.admin_tools_app.IntranetThemingConfig', 'django.contrib.admin', 'django.contrib.auth', 'django_auth_client', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'core', 'previews'] |
INTERNAL_IPS | [] |
LANGUAGES | [('it', 'Italian'), ('es', 'Spanish'), ('en', 'English')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | ('/var/src/locale',) |
LOGGING | {'disable_existing_loggers': False, 'loggers': {'ddtrace.writer': {'level': 'CRITICAL'}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/auth/login/' |
LOGOUT_REDIRECT_URL | 'dashboard' |
MANAGERS | [] |
MEDIA_ROOT | '/var/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django_auth_client.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django_healthz.middleware.HealthCheckMiddleware', 'django.middleware.locale.LocaleMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
OAUTH2_JWT_AUDIENCE | 'https://auth.photosi.com/' |
OAUTH2_JWT_KEY | '********************' |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROFESSIONAL_PREVIEW_BASE_URL | 'https://preview-service.photoforse.online' |
PROJECT_EXPOSE_MESSAGING | False |
PUM_THUMBNAILS | {'big': 6, 'medium': 4, 'small': 5} |
READY_TO_PRINT_CODE | 'ReadyToPrint' |
REST_FRAMEWORK | {'DEFAULT_AUTHENTICATION_CLASSES': ('django_auth_client.frameworks.RestFrameworkAuthentication',)} |
ROOT_URLCONF | 'PREVIEW_SERVICE.urls' |
RPC_TIMEOUT | 10000 |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SENTRY_DSNS | 'https://569cb91302a144d98da766e0d56672c8:dff9783f51554cd3ac91ef877d759723@crash.photosi.com/131' |
SERVER_EMAIL | 'root@localhost' |
SERVICE | 'preview-service' |
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_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 | 'PREVIEW_SERVICE.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 | '/var/www/static' |
STATIC_URL | '/static/' |
SVG_EDITOR_RESPONSIVE_FILE_TYPE | 'SvgEditorResponsive' |
TEMPLATES | [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], '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'], 'debug': True, 'loaders': ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'intranet_admin.template_loaders.IntranetAdminLoader']}}] |
TEMPLATE_DEBUG | True |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
THUMBOR_SECURITY_KEY | '********************' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'UTC' |
TRACE_AGENT | '127.0.0.1' |
TRACE_ENABLED | False |
TRACE_PORT | 8126 |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WEB_MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django_auth_client.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django_healthz.middleware.HealthCheckMiddleware', 'django.middleware.locale.LocaleMiddleware'] |
WEB_ROOT_URLCONF | 'PREVIEW_SERVICE.urls' |
WSGI_APPLICATION | 'PREVIEW_SERVICE.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
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.