unsupported operand type(s) for +=: 'NoneType' and 'str'
Request Method: | GET |
---|---|
Request URL: | https://mpr.acdh-dev.oeaw.ac.at/entity/2119/?format=json%2Bprosop |
Django Version: | 3.1.14 |
Exception Type: | TypeError |
Exception Value: | unsupported operand type(s) for +=: 'NoneType' and 'str' |
Exception Location: | /app/apis_core/apis_entities/api_renderers.py, line 262, in render |
Python Executable: | /usr/local/bin/python3.8 |
Python Version: | 3.8.18 |
Python Path: | ['/usr/local/bin', '/app', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/site-packages'] |
Server time: | Fri, 29 Mar 2024 06:54:36 +0000 |
/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py
, line 47, in inner
response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
return response
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | TypeError("unsupported operand type(s) for +=: 'NoneType' and 'str'") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f38b2f50910>> |
request | <WSGIRequest: GET '/entity/2119/?format=json%2Bprosop'> |
/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py
, line 204, in _get_response
response,
middleware_method,
name='%s.process_template_response' % (
middleware_method.__self__.__class__.__name__,
)
)
try:
response = response.render()…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
return response
Variable | Value |
---|---|
callback | <function GetEntityGeneric at 0x7f3890049940> |
callback_args | () |
callback_kwargs | {'pk': 2119} |
middleware_method | <function CsrfViewMiddleware.process_view at 0x7f389170c940> |
request | <WSGIRequest: GET '/entity/2119/?format=json%2Bprosop'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f38b2f50910> |
wrapped_callback | <function GetEntityGeneric at 0x7f388a127940> |
/usr/local/lib/python3.8/site-packages/sentry_sdk/integrations/django/views.py
, line 38, in sentry_patched_render
def sentry_patched_render(self):
# type: (SimpleTemplateResponse) -> Any
hub = Hub.current
with hub.start_span(
op=OP.VIEW_RESPONSE_RENDER, description="serialize response"
):
return old_render(self)…
@_functools.wraps(old_make_view_atomic)
def sentry_patched_make_view_atomic(self, *args, **kwargs):
# type: (Any, *Any, **Any) -> Any
callback = old_make_view_atomic(self, *args, **kwargs)
Variable | Value |
---|---|
hub | <sentry_sdk.hub.Hub object at 0x7f3890508880> |
old_render | <function SimpleTemplateResponse.render at 0x7f38b37f0040> |
self | <Response status_code=200, "text/json+prosop; charset=utf-8"> |
/usr/local/lib/python3.8/site-packages/django/template/response.py
, line 105, in render
If the content has already been rendered, this is a no-op.
Return the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content…
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
retval | <Response status_code=200, "text/json+prosop; charset=utf-8"> |
self | <Response status_code=200, "text/json+prosop; charset=utf-8"> |
/usr/local/lib/python3.8/site-packages/rest_framework/response.py
, line 70, in rendered_content
if content_type is None and charset is not None:
content_type = "{}; charset={}".format(media_type, charset)
elif content_type is None:
content_type = media_type
self['Content-Type'] = content_type
ret = renderer.render(self.data, accepted_media_type, context)…
if isinstance(ret, str):
assert charset, (
'renderer returned unicode, and did not specify '
'a charset value.'
)
return ret.encode(charset)
Variable | Value |
---|---|
accepted_media_type | 'text/json+prosop' |
charset | 'utf-8' |
content_type | 'text/json+prosop; charset=utf-8' |
context | {'args': (), 'kwargs': {'pk': 2119}, 'request': <rest_framework.request.Request: GET '/entity/2119/?format=json%2Bprosop'>, 'response': <Response status_code=200, "text/json+prosop; charset=utf-8">, 'view': <apis_core.apis_entities.api_views.GetEntityGeneric object at 0x7f388bed1580>} |
media_type | 'text/json+prosop' |
renderer | <apis_core.apis_entities.api_renderers.EntityToProsopogrAPhI object at 0x7f388a0fa430> |
self | <Response status_code=200, "text/json+prosop; charset=utf-8"> |
/app/apis_core/apis_entities/api_renderers.py
, line 262, in render
if "start_date" in rel_1.keys():
if rel_1["start_date"] != "":
s["date"] = {
"sortdate": rel_1["start_date"],
"label": rel_1["start_date_written"],
}
if rel_1["end_date_written"] != "":
s["date"]["label"] += "-{}".format(…
rel_1["end_date_written"]
)
ext_stc = False
t1 = {
"uri": "{}/api2/entity/{}".format(
base_uri, rel_1["target"]["id"]
Variable | Value |
---|---|
data | {'collection': [OrderedDict([('id', 2), ('name', 'Manuell erstellte Entität')])], 'end_date': None, 'end_date_written': None, 'end_end_date': None, 'end_start_date': None, 'entity_type': 'Institution', 'id': 2119, 'kind': OrderedDict([('id', 25), ('name', 'Auszeichnung'), ('label', 'Auszeichnung')]), 'labels': [], 'name': 'Hofrat (Titel)', 'relations': {'events': [], 'institutions': [], 'persons': [{'annotation': None, 'end_date': None, 'end_date_written': None, 'id': 2162, 'relation_type': {'id': 31, 'label': 'wurde verliehen an', 'url': 'https://mpr.acdh.oeaw.ac.at/apis/api/vocabularies/personinstitutionrelation/31/'}, 'revisions': [{'date_created': datetime.datetime(2018, 6, 14, 14, 33, 4, tzinfo=<UTC>), 'id': 591, 'user_created': 'WlFischer'}], 'start_date': None, 'start_date_written': None, 'target': {'collection': [OrderedDict([('id', 2), ('name', 'Manuell ' 'erstellte ' 'Entität')])], 'end_date': None, 'end_date_written': None, 'end_end_date': None, 'end_start_date': None, 'entity_type': 'Person', 'first_name': 'Franz', 'gender': 'male', 'id': 2160, 'labels': [], 'name': 'Wyrwalski', 'profession': [], 'revisions': [{'date_created': datetime.datetime(2018, 6, 14, 15, 35, 58, tzinfo=<UTC>), 'id': 745, 'user_created': 'WlFischer'}, {'date_created': datetime.datetime(2018, 6, 14, 14, 46, 5, tzinfo=<UTC>), 'id': 624, 'user_created': 'WlFischer'}, {'date_created': datetime.datetime(2018, 6, 14, 14, 29, 22, tzinfo=<UTC>), 'id': 585, 'user_created': 'WlFischer'}], 'start_date': None, 'start_date_written': None, 'start_end_date': None, 'start_start_date': None, 'status': '', 'title': [], 'uris': [OrderedDict([('id', 2319), ('uri', 'https://mpr.acdh.oeaw.ac.at/apis/api2/entity/2160/')])], 'url': 'https://mpr.acdh.oeaw.ac.at/entity/2160/'}}, {'annotation': None, 'end_date': None, 'end_date_written': None, 'id': 2218, … <trimmed 55731 bytes string> |
ent | 'persons' |
f | {'@id': 'apis_institution_2119', 'createdBy': 'TITLE export', 'createdWhen': datetime.datetime(2024, 3, 29, 6, 54, 36, 355343, tzinfo=<UTC>), 'institution': {'@id': '2119', 'uris': ['https://mpr.acdh.oeaw.ac.at/apis/api2/entity/2119/']}, 'source': {'@id': 'TITLE', 'label': 'TITLE export'}, 'statements': []} |
fact_settings | None |
factoids | [{'@id': 'apis_institution_2119', 'createdBy': 'TITLE export', 'createdWhen': datetime.datetime(2024, 3, 29, 6, 54, 36, 355343, tzinfo=<UTC>), 'institution': {'@id': '2119', 'uris': ['https://mpr.acdh.oeaw.ac.at/apis/api2/entity/2119/']}, 'source': {'@id': 'TITLE', 'label': 'TITLE export'}, 'statements': []}] |
facts | [] |
facts_ind | {} |
media_type | 'text/json+prosop' |
rel_1 | {'annotation': None, 'end_date': None, 'end_date_written': None, 'id': 2162, 'relation_type': {'id': 31, 'label': 'wurde verliehen an', 'url': 'https://mpr.acdh.oeaw.ac.at/apis/api/vocabularies/personinstitutionrelation/31/'}, 'revisions': [{'date_created': datetime.datetime(2018, 6, 14, 14, 33, 4, tzinfo=<UTC>), 'id': 591, 'user_created': 'WlFischer'}], 'start_date': None, 'start_date_written': None, 'target': {'collection': [OrderedDict([('id', 2), ('name', 'Manuell erstellte Entität')])], 'end_date': None, 'end_date_written': None, 'end_end_date': None, 'end_start_date': None, 'entity_type': 'Person', 'first_name': 'Franz', 'gender': 'male', 'id': 2160, 'labels': [], 'name': 'Wyrwalski', 'profession': [], 'revisions': [{'date_created': datetime.datetime(2018, 6, 14, 15, 35, 58, tzinfo=<UTC>), 'id': 745, 'user_created': 'WlFischer'}, {'date_created': datetime.datetime(2018, 6, 14, 14, 46, 5, tzinfo=<UTC>), 'id': 624, 'user_created': 'WlFischer'}, {'date_created': datetime.datetime(2018, 6, 14, 14, 29, 22, tzinfo=<UTC>), 'id': 585, 'user_created': 'WlFischer'}], 'start_date': None, 'start_date_written': None, 'start_end_date': None, 'start_start_date': None, 'status': '', 'title': [], 'uris': [OrderedDict([('id', 2319), ('uri', 'https://mpr.acdh.oeaw.ac.at/apis/api2/entity/2160/')])], 'url': 'https://mpr.acdh.oeaw.ac.at/entity/2160/'}} |
renderer_context | {'args': (), 'kwargs': {'pk': 2119}, 'request': <rest_framework.request.Request: GET '/entity/2119/?format=json%2Bprosop'>, 'response': <Response status_code=200, "text/json+prosop; charset=utf-8">, 'view': <apis_core.apis_entities.api_views.GetEntityGeneric object at 0x7f388bed1580>} |
s | {'@id': 'Stmt2119_rel_2162', 'date': {'label': None, 'sortdate': None}, 'role': {'label': 'wurde verliehen an', 'url': 'https://mpr.acdh.oeaw.ac.at/apis/api/vocabularies/personinstitutionrelation/31/'}} |
self | <apis_core.apis_entities.api_renderers.EntityToProsopogrAPhI object at 0x7f388a0fa430> |
stmt_count | 1 |
stmt_temp | 'Stmt{}_{}' |
stmts | [] |
u | OrderedDict([('id', 2286), ('uri', 'https://mpr.acdh.oeaw.ac.at/apis/api2/entity/2119/')]) |
AnonymousUser
Variable | Value |
---|---|
format | 'json+prosop' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_FRONT_END_HTTPS | 'on' |
HTTP_HOST | 'mpr.acdh-dev.oeaw.ac.at' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_VIA | '1.1 zzz-catch-all-acdh-cluster-2.acdh-dev.oeaw.ac.at' |
HTTP_X_FORWARDED_FOR | '44.200.82.195' |
HTTP_X_FORWARDED_HOST | 'mpr.acdh-dev.oeaw.ac.at' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_REQUEST_URI | '/entity/2119/' |
HTTP_X_FORWARDED_SCHEME | 'https' |
HTTP_X_FORWARDED_SERVER | 'zzz-catch-all-acdh-cluster-2.acdh-dev.oeaw.ac.at' |
HTTP_X_ORIGINAL_FORWARDED_FOR | '44.200.82.195' |
HTTP_X_REAL_IP | '44.200.82.195' |
HTTP_X_REQUEST_ID | '91d93f4e48551d40f71a2ca1e27aa6b9' |
HTTP_X_SCHEME | 'https' |
PATH_INFO | '/entity/2119/' |
QUERY_STRING | 'format=json%2Bprosop' |
RAW_URI | '/entity/2119/?format=json%2Bprosop' |
REMOTE_ADDR | '10.42.54.185' |
REMOTE_PORT | '41322' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '0.0.0.0' |
SERVER_PORT | '5000' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'gunicorn/20.1.0' |
gunicorn.socket | <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('10.42.251.97', 5000), raddr=('10.42.54.185', 41322)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f3890022b50> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7f3890068970> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
apis.settings.mpr_dev_server
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACDH_IMPRINT_URL | 'https://shared.acdh.oeaw.ac.at/acdh-common-assets/api/imprint.php?serviceID=' |
ADMINS | [] |
ALLOWED_CIDR_NETS | ['10.0.0.0/8', '127.0.0.0/8'] |
ALLOWED_HOSTS | ['*'] |
APIS_ALTERNATE_NAMES | '********************' |
APIS_API_EXCLUDE_SETS | '********************' |
APIS_BASE_URI | '********************' |
APIS_BLAZEGRAPH | '********************' |
APIS_CETEICEAN_CSS | '********************' |
APIS_CETEICEAN_JS | '********************' |
APIS_COMPONENTS | '********************' |
APIS_DELETE_VIEW_TEMPLATE | '********************' |
APIS_DETAIL_VIEWS_ALLOWED | '********************' |
APIS_ENTITIES | '********************' |
APIS_IIIF_ENT_IIIF_REL | '********************' |
APIS_IIIF_SERVER | '********************' |
APIS_IIIF_WORK_KIND | '********************' |
APIS_LIST_VIEWS_ALLOWED | '********************' |
APIS_LIST_VIEW_TEMPLATE | '********************' |
APIS_METAINFO | '********************' |
APIS_MIN_CHAR | '********************' |
APIS_NEXT_PREV | '********************' |
APIS_OSD_IMG_PREFIX | '********************' |
APIS_OSD_JS | '********************' |
APIS_RELATIONS | '********************' |
APIS_RELATIONS_FILTER_EXCLUDE | '********************' |
APIS_SKOSMOS | '********************' |
APIS_TEI_TEXTS | '********************' |
APIS_VOCABULARIES | '********************' |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend', 'guardian.backends.ObjectPermissionBackend') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/app' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CORS_ALLOW_CREDENTIALS | True |
CORS_ALLOW_METHODS | ('GET', 'OPTIONS') |
CORS_ORIGIN_ALLOW_ALL | True |
CRISPY_TEMPLATE_PACK | 'bootstrap3' |
CSP_DEFAULT_SRC | ("'self'", "'unsafe-inline'", "data: 'unsafe-eval'", 'cdnjs.cloudflare.com', 'cdn.jsdelivr.net', 'fonts.googleapis.com', 'ajax.googleapis.com', 'cdn.rawgit.com', '*.acdh.oeaw.ac.at', 'unpkg.com', 'fonts.gstatic.com', 'cdn.datatables.net', 'code.highcharts.com', '*.acdh-dev.oeaw.ac.at', '*.acdh.oeaw.ac.at', 'openstreetmap.org', '*.openstreetmap.org', 'www.oeaw.ac.at', 'mrp.oeaw.ac.at') |
CSP_FRAME_SRC | ('sennierer.github.io',) |
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': 600, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'helios.arz.oeaw.ac.at', 'NAME': 'mprdev', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': 3306, 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'mpr'}} |
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 | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_SECRET_KEY | '********************' |
DEFAULT_TABLESPACE | '' |
DEV_VERSION | True |
DISALLOWED_USER_AGENTS | [] |
DJANGO_TABLES2_TEMPLATE | 'django_tables2/bootstrap4.html' |
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_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 | ['dal', 'dal_select2', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'reversion', 'crispy_forms', 'django_filters', 'django_tables2', 'rest_framework', 'webpage', 'browsing', 'apis_core.apis_entities', 'apis_core.apis_metainfo', 'apis_core.apis_relations', 'apis_core.apis_vocabularies', 'apis_core.apis_labels', 'apis_core.apis_tei', 'rest_framework.authtoken', 'drf_spectacular', 'guardian', 'charts', 'infos', 'csvexport'] |
INTERNAL_IPS | [] |
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'), ('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' |
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 | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MAX_AGE | 3600 |
MEDIA_ROOT | '/app/media/' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['allow_cidr.middleware.AllowCIDRMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'csp.middleware.CSPMiddleware', 'reversion.middleware.RevisionMiddleware', 'crum.CurrentRequestUserMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROJECT_DEFAULT_MD | {'app_type': 'database', 'author': 'Matthias Schlögl, Peter Andorfer', 'description': 'This is a default metadata file. To change this, provide ' 'provide a following file ' '{PROJECT_SHARED}/{PROJECT_NAME}/metadata.json', 'github': 'https://github.com/acdh-oeaw/apis-webpage-base', 'imprint': '/imprint', 'matomo_id': '', 'matomo_url': '', 'production instance': None, 'purpose_de': '', 'purpose_en': '', 'social_media': [('fab fa-twitter fa-2x', 'https://twitter.com/ACDH_OeAW'), ('fab fa-youtube fa-2x', 'https://www.youtube.com/channel/UCgaEMaMbPkULYRI5u6gvG-w')], 'subtitle': 'SUBTITLE', 'title': 'TITLE', 'version': ['apis_core', 'charts', 'django']} |
PROJECT_NAME | 'mpr' |
PROJECT_SHARED | 'https://shared.acdh.oeaw.ac.at/apis/' |
REDMINE_ID | '11695' |
REST_FRAMEWORK | {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.BasicAuthentication'), 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticatedOrReadOnly',), 'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema', 'PAGE_SIZE': 50} |
ROBOTS_TXT_FOLDER | '/app/robots_template' |
ROOT_URLCONF | 'apis.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | ('HTTP_X_FORWARDED_PROTO', 'https') |
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 | 'apis.settings.mpr_dev_server' |
SHARED_URL | 'https://shared.acdh.oeaw.ac.at/' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SPECTACULAR_SETTINGS | {'DESCRIPTIOPN': 'Provides access to the main APIS data-model endpoints.', 'LICENSE': {'name': 'MIT License', 'url': 'https://www.mit.edu/~amini/LICENSE.md'}, 'TITLE': 'APIS generic API', 'VERSION': '0.13'} |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/app/staticfiles/' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/app/robots_template', '/app/robots_template'], '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', 'webpage.webpage_content_processors.installed_apps', 'webpage.webpage_content_processors.is_dev_version', 'webpage.webpage_content_processors.get_db_name', 'webpage.webpage_content_processors.title_img', 'webpage.webpage_content_processors.logo_img', 'webpage.webpage_content_processors.custom_css', 'webpage.webpage_content_processors.shared_url', 'webpage.webpage_content_processors.apis_app_name', 'apis_core.context_processors.custom_context_processors.add_entities', 'apis_core.context_processors.custom_context_processors.add_relations', 'apis_core.context_processors.custom_context_processors.add_apis_settings']}}] |
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 | True |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'apis.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.