list index out of range
Request Method: | GET |
---|---|
Request URL: | https://de.seba.kim/sentence/?de=Ein+Patient+ist+beim+Arzt |
Django Version: | 2.2.28 |
Exception Type: | IndexError |
Exception Value: | list index out of range |
Exception Location: | /function/venv_deploy/src/py-translator/py_translator/gtoken.py in _update, line 53 |
Python Executable: | /function/venv_deploy/bin/python |
Python Version: | 3.11.1 |
Python Path: | ['/function', '/usr/local/lib/python311.zip', '/usr/local/lib/python3.11', '/usr/local/lib/python3.11/lib-dynload', '/function/venv_deploy/lib/python3.11/site-packages', '/function/venv_deploy/src/py-translator', '/var/task'] |
Server time: | Fri, 29 Mar 2024 04:59:26 +0000 |
/function/venv_deploy/lib/python3.11/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 | IndexError('list index out of range') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f4afb671050>> |
request | <WSGIRequest: GET '/sentence/?de=Ein+Patient+ist+beim+Arzt'> |
/function/venv_deploy/lib/python3.11/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 sentence at 0x7f4afa586a20> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f4afb671a50>> |
request | <WSGIRequest: GET '/sentence/?de=Ein+Patient+ist+beim+Arzt'> |
resolver | <URLResolver 'easy_deutsch.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=easy_deutsch.views.sentence, args=(), kwargs={}, url_name=sentence, app_names=[], namespaces=[], route=sentence/) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f4afb671050> |
wrapped_callback | <function sentence at 0x7f4afa586a20> |
/function/venv_deploy/lib/python3.11/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 sentence at 0x7f4afa586a20> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f4afb671a50>> |
request | <WSGIRequest: GET '/sentence/?de=Ein+Patient+ist+beim+Arzt'> |
resolver | <URLResolver 'easy_deutsch.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=easy_deutsch.views.sentence, args=(), kwargs={}, url_name=sentence, app_names=[], namespaces=[], route=sentence/) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f4afb671050> |
wrapped_callback | <function sentence at 0x7f4afa586a20> |
/function/easy_deutsch/views.py
in sentence
def sentence(request):
de, en = py_.at(request.GET, "de", "en")
data = dict(languages=["de", "en", "es", "fr", "ko"], translations=dict(de=de, en=en), query=dict(de=de, en=en))
translator = Translator()
if de:
text = translator.translate(de, src="de", dest="en").text…
data["translations"]["en"] = text
elif en:
text = translator.translate(en, src="en", dest="de").text
data["translations"]["de"] = text
if de or en:
Variable | Value |
---|---|
data | {'languages': ['de', 'en', 'es', 'fr', 'ko'], 'query': {'de': 'Ein Patient ist beim Arzt', 'en': None}, 'translations': {'de': 'Ein Patient ist beim Arzt', 'en': None}} |
de | 'Ein Patient ist beim Arzt' |
en | None |
request | <WSGIRequest: GET '/sentence/?de=Ein+Patient+ist+beim+Arzt'> |
translator | <py_translator.client.Translator object at 0x7f4afa3a0190> |
/function/venv_deploy/src/py-translator/py_translator/client.py
in translate
result = []
for item in text:
translated = self.translate(item, dest=dest, src=src)
result.append(translated)
return result
origin = text
data = self._translate(text, dest, src)…
# this code will be updated when the format is changed.
translated = ''.join([d[0] if d[0] else '' for d in data[0]])
extra_data = self._parse_extra_data(data)
Variable | Value |
---|---|
dest | 'en' |
origin | 'Ein Patient ist beim Arzt' |
self | <py_translator.client.Translator object at 0x7f4afa3a0190> |
src | 'de' |
text | 'Ein Patient ist beim Arzt' |
/function/venv_deploy/src/py-translator/py_translator/client.py
in _translate
return self.service_urls[0]
return random.choice(self.service_urls)
def _translate(self, text, dest, src):
if not PY3 and isinstance(text, str): # pragma: nocover
text = text.decode('utf-8')
token = self.token_acquirer.do(text)…
params = utils.build_params(query=text, src=src, dest=dest,
token=token)
url = urls.TRANSLATE.format(host=self._pick_service_url())
r = self.session.get(url, params=params)
data = utils.format_json(r.text)
Variable | Value |
---|---|
dest | 'en' |
self | <py_translator.client.Translator object at 0x7f4afa3a0190> |
src | 'de' |
text | 'Ein Patient ist beim Arzt' |
/function/venv_deploy/src/py-translator/py_translator/gtoken.py
in do
if a < 0: # pragma: nocover
a = (a & 2147483647) + 2147483648
a %= 1000000 # int(1E6)
return '{}.{}'.format(a, a ^ b)
def do(self, text):
self._update()…
tk = self.acquire(text)
return tk
Variable | Value |
---|---|
self | <py_translator.gtoken.TokenAcquirer object at 0x7f4afa3a0c90> |
text | 'Ein Patient ist beim Arzt' |
/function/venv_deploy/src/py-translator/py_translator/gtoken.py
in _update
self.host = host if 'http' in host else 'https://' + host
def _update(self):
"""update tkk
"""
# we don't need to update the base TKK value when it is still valid
r = self.session.get(self.host)
self.tkk = self.RE_TKK.findall(r.text)[0]…
now = math.floor(int(time.time() * 1000) / 3600000.0)
if self.tkk and int(self.tkk.split('.')[0]) == now:
return
# this will be the same as python code after stripping out a reserved word 'var'
Variable | Value |
---|---|
r | <Response [200]> |
self | <py_translator.gtoken.TokenAcquirer object at 0x7f4afa3a0c90> |
AnonymousUser
Variable | Value |
---|---|
de | 'Ein Patient ist beim Arzt' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTPS | 'on' |
HTTP_ACCEPT | '*/*' |
HTTP_CLOUDFRONT_FORWARDED_PROTO | 'https' |
HTTP_CLOUDFRONT_IS_DESKTOP_VIEWER | 'true' |
HTTP_CLOUDFRONT_IS_MOBILE_VIEWER | 'false' |
HTTP_CLOUDFRONT_IS_SMARTTV_VIEWER | 'false' |
HTTP_CLOUDFRONT_IS_TABLET_VIEWER | 'false' |
HTTP_CLOUDFRONT_VIEWER_ASN | '14618' |
HTTP_CLOUDFRONT_VIEWER_COUNTRY | 'US' |
HTTP_HOST | 'de.seba.kim' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_VIA | '2.0 ec22576e88e707bf58c11e0ee75d019c.cloudfront.net (CloudFront)' |
HTTP_X_AMZN_TRACE_ID | 'Root=1-66064aae-06487916580f35354267f846' |
HTTP_X_AMZ_CF_ID | 'qCIWAcaYi0GYwspeQAgj2M8AS-npXgSILy2dsL-Jy1p8XRjPgtNmhg==' |
HTTP_X_FORWARDED_FOR | '3.236.171.68, 130.176.137.79' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
PATH_INFO | '/sentence/' |
QUERY_STRING | 'de=Ein+Patient+ist+beim+Arzt' |
REMOTE_ADDR | '3.236.171.68' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'zappa' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
lambda.context | LambdaContext([aws_request_id=629a6903-b6b0-45c2-a09f-bc81fd467ad4,log_group_name=/aws/lambda/easy-deutsch-prod,log_stream_name=2024/03/29/[$LATEST]0267baef97b4421895042101e6f75d11,function_name=easy-deutsch-prod,memory_limit_in_mb=512,function_version=$LATEST,invoked_function_arn=arn:aws:lambda:eu-central-1:768809220187:function:easy-deutsch-prod,client_context=None,identity=CognitoIdentity([cognito_identity_id=None,cognito_identity_pool_id=None])]) |
lambda.event | {'body': None, 'headers': {'Accept': '*/*', 'CloudFront-Forwarded-Proto': 'https', 'CloudFront-Is-Desktop-Viewer': 'true', 'CloudFront-Is-Mobile-Viewer': 'false', 'CloudFront-Is-SmartTV-Viewer': 'false', 'CloudFront-Is-Tablet-Viewer': 'false', 'CloudFront-Viewer-ASN': '14618', 'CloudFront-Viewer-Country': 'US', 'Host': 'de.seba.kim', 'User-Agent': 'claudebot', 'Via': '2.0 ec22576e88e707bf58c11e0ee75d019c.cloudfront.net ' '(CloudFront)', 'X-Amz-Cf-Id': 'qCIWAcaYi0GYwspeQAgj2M8AS-npXgSILy2dsL-Jy1p8XRjPgtNmhg==', 'X-Amzn-Trace-Id': 'Root=1-66064aae-06487916580f35354267f846', 'X-Forwarded-For': '3.236.171.68, 130.176.137.79', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https'}, 'httpMethod': 'GET', 'isBase64Encoded': False, 'multiValueHeaders': {'Accept': ['*/*'], 'CloudFront-Forwarded-Proto': ['https'], 'CloudFront-Is-Desktop-Viewer': ['true'], 'CloudFront-Is-Mobile-Viewer': ['false'], 'CloudFront-Is-SmartTV-Viewer': ['false'], 'CloudFront-Is-Tablet-Viewer': ['false'], 'CloudFront-Viewer-ASN': ['14618'], 'CloudFront-Viewer-Country': ['US'], 'Host': ['de.seba.kim'], 'User-Agent': ['claudebot'], 'Via': ['2.0 ' 'ec22576e88e707bf58c11e0ee75d019c.cloudfront.net ' '(CloudFront)'], 'X-Amz-Cf-Id': ['qCIWAcaYi0GYwspeQAgj2M8AS-npXgSILy2dsL-Jy1p8XRjPgtNmhg=='], 'X-Amzn-Trace-Id': ['Root=1-66064aae-06487916580f35354267f846'], 'X-Forwarded-For': ['3.236.171.68, 130.176.137.79'], 'X-Forwarded-Port': ['443'], 'X-Forwarded-Proto': ['https']}, 'multiValueQueryStringParameters': {'de': ['Ein Patient ist beim Arzt']}, 'path': '/sentence/', 'pathParameters': {'proxy': 'sentence'}, 'queryStringParameters': {'de': 'Ein Patient ist beim Arzt'}, 'requestContext': {'accountId': '768809220187', 'apiId': 'tlvxaa6lr2', 'deploymentId': '26wk6m', 'domainName': 'de.seba.kim', 'domainPrefix': 'de', 'extendedRequestId': 'VYCbPFvpliAEOFw=', 'httpMethod': 'GET', 'identity': {'accessKey': None, 'accountId': None, 'caller': None, 'cognitoAuthenticationProvider': None, 'cognitoAuthenticationType': None, 'cognitoIdentityId': None, 'cognitoIdentityPoolId': None, 'principalOrgId': None, 'sourceIp': '3.236.171.68', 'user': None, 'userAgent': 'claudebot', 'userArn': None}, 'path': '/sentence/', 'protocol': 'HTTP/1.1', 'requestId': '7401c0d2-a6a6-4183-a189-f8c2977a3ff6', 'requestTime': '29/Mar/2024:04:59:26 +0000', 'requestTimeEpoch': 1711688366088, 'resourceId': '8fe3f1', 'resourcePath': '/{proxy+}', 'stage': 'prod'}, 'resource': '/{proxy+}', 'stageVariables': None} |
wsgi.errors | <awslambdaric.bootstrap.Unbuffered object at 0x7f4afe0cfcd0> |
wsgi.input | None |
wsgi.multiprocess | False |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
easy_deutsch.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['.amazonaws.com', 'localhost', '.seba.kim'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | PosixPath('/function') |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': PosixPath('/function/db.sqlite3'), 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
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 | [] |
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 |
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' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'bootstrap4', 'easy_deutsch'] |
INTERNAL_IPS | [] |
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'), ('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'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('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 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'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '' |
MEDIA_URL | '' |
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.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'easy_deutsch.urls' |
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 |
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 | 'easy_deutsch.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 | None |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [PosixPath('/function/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' |
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 | 'easy_deutsch.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.