cannot unpack non-iterable NoneType object
Request Method: | GET |
---|---|
Request URL: | https://apis.acdh.oeaw.ac.at/person/43917 |
Django Version: | 4.1.7 |
Exception Type: | TypeError |
Exception Value: | cannot unpack non-iterable NoneType object |
Exception Location: | /usr/local/lib/python3.11/site-packages/apis_highlighter/highlighter.py, line 75, in highlight_text_new |
Raised during: | theme.views.PersonDetailView |
Python Executable: | /usr/local/bin/python3.11 |
Python Version: | 3.11.8 |
Python Path: | ['/usr/local/bin', '/app', '/usr/local/lib/python311.zip', '/usr/local/lib/python3.11', '/usr/local/lib/python3.11/lib-dynload', '/usr/local/lib/python3.11/site-packages'] |
Server time: | Tue, 19 Mar 2024 09:18:16 +0000 |
/usr/local/lib/python3.11/site-packages/django/core/handlers/exception.py
, line 56, in inner
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('cannot unpack non-iterable NoneType object') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f6bad4d1d50>> |
request | <WSGIRequest: GET '/person/43917'> |
/usr/local/lib/python3.11/site-packages/django/core/handlers/base.py
, line 197, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if asyncio.iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function View.as_view.<locals>.view at 0x7f6ba1ce32e0> |
callback_args | () |
callback_kwargs | {'pk': '43917'} |
middleware_method | <function CsrfViewMiddleware.process_view at 0x7f6ba4184900> |
request | <WSGIRequest: GET '/person/43917'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f6bad4d1d50> |
wrapped_callback | <function View.as_view.<locals>.view at 0x7f6ba15ff100> |
/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/django/views.py
, line 85, in sentry_wrapped_callback
# this isn't necessary for async views since that runs on main
if sentry_scope.profile is not None:
sentry_scope.profile.update_active_thread_id()
with hub.start_span(
op=OP.VIEW_RENDER, description=request.resolver_match.view_name
):
return callback(request, *args, **kwargs)…
return sentry_wrapped_callback
Variable | Value |
---|---|
args | () |
callback | <function View.as_view.<locals>.view at 0x7f6ba1ce32e0> |
hub | <sentry_sdk.hub.Hub object at 0x7f6b7ecfe290> |
kwargs | {'pk': '43917'} |
request | <WSGIRequest: GET '/person/43917'> |
sentry_scope | <Scope id=0x7f6ba0f88930 name=wsgi> |
/usr/local/lib/python3.11/site-packages/django/views/generic/base.py
, line 103, in view
self = cls(**initkwargs)
self.setup(request, *args, **kwargs)
if not hasattr(self, "request"):
raise AttributeError(
"%s instance has no 'request' attribute. Did you override "
"setup() and forget to call super()?" % cls.__name__
)
return self.dispatch(request, *args, **kwargs)…
view.view_class = cls
view.view_initkwargs = initkwargs
# __name__ and __qualname__ are intentionally left unchanged as
# view_class should be used to robustly determine the name of the view
Variable | Value |
---|---|
args | () |
cls | <class 'theme.views.PersonDetailView'> |
initkwargs | {} |
kwargs | {'pk': '43917'} |
request | <WSGIRequest: GET '/person/43917'> |
self | <theme.views.PersonDetailView object at 0x7f6b9917ae50> |
/usr/local/lib/python3.11/site-packages/django/views/generic/base.py
, line 142, in dispatch
# request method isn't on the approved list.
if request.method.lower() in self.http_method_names:
handler = getattr(
self, request.method.lower(), self.http_method_not_allowed
)
else:
handler = self.http_method_not_allowed
return handler(request, *args, **kwargs)…
def http_method_not_allowed(self, request, *args, **kwargs):
logger.warning(
"Method Not Allowed (%s): %s",
request.method,
request.path,
Variable | Value |
---|---|
args | () |
handler | <bound method BaseDetailView.get of <theme.views.PersonDetailView object at 0x7f6b9917ae50>> |
kwargs | {'pk': '43917'} |
request | <WSGIRequest: GET '/person/43917'> |
self | <theme.views.PersonDetailView object at 0x7f6b9917ae50> |
/usr/local/lib/python3.11/site-packages/django/views/generic/detail.py
, line 109, in get
class BaseDetailView(SingleObjectMixin, View):
"""A base view for displaying a single object."""
def get(self, request, *args, **kwargs):
self.object = self.get_object()
context = self.get_context_data(object=self.object)…
return self.render_to_response(context)
class SingleObjectTemplateResponseMixin(TemplateResponseMixin):
template_name_field = None
template_name_suffix = "_detail"
Variable | Value |
---|---|
args | () |
kwargs | {'pk': '43917'} |
request | <WSGIRequest: GET '/person/43917'> |
self | <theme.views.PersonDetailView object at 0x7f6b9917ae50> |
/app/theme/views.py
, line 114, in get_context_data
).order_by("-id").first()
except AttributeError:
context['prev'] = None
try:
context['next'] = oebl_persons.filter(id__gt=self.object.id).first()
except AttributeError:
context['next'] = None
enriched_context = enrich_person_context(self.object, context)…
return enriched_context
Variable | Value |
---|---|
__class__ | <class 'theme.views.PersonDetailView'> |
context | {'next': <Person: Ruchinger, Giuseppe d. Ä.>, 'object': <Person: Rubritius, Hans>, 'person': <Person: Rubritius, Hans>, 'place_of_birth': <Place: Klattau>, 'place_of_death': <Place: Wien>, 'prev': <Person: Rubin, Salomon>, 'profession': 'Urologe', 'profession_categories': <QuerySet [<ProfessionType: Medizin>]>, 'related_institutions': <RelationPublishedQueryset []>, 'related_persons': None, 'related_places': <RelationPublishedQueryset [<PersonPlace: Rubritius, Hans (geboren in) Klattau>, <PersonPlace: Rubritius, Hans (gestorben in) Wien>]>, 'view': <theme.views.PersonDetailView object at 0x7f6b9917ae50>} |
kwargs | {'object': <Person: Rubritius, Hans>} |
self | <theme.views.PersonDetailView object at 0x7f6b9917ae50> |
/app/theme/utils.py
, line 101, in enrich_person_context
except AttributeError:
context["related_institutions"] = None
haupttext = person_object.text.filter(
kind__name=getattr(settings, "HAUPTTEXT_TEXT_NAME", "ÖBL Haupttext")
)
if haupttext.count() == 1:
# context["haupttext"] = haupttext[0].text
text = highlight_text_new(haupttext[0])…
context["haupttext"] = (
text[0].replace("<mark ", "<a ").replace("</mark>", "</a>")
)
else:
context["haupttext"] = "-"
kurzinfo = person_object.text.filter(
Variable | Value |
---|---|
context | {'next': <Person: Ruchinger, Giuseppe d. Ä.>, 'object': <Person: Rubritius, Hans>, 'person': <Person: Rubritius, Hans>, 'place_of_birth': <Place: Klattau>, 'place_of_death': <Place: Wien>, 'prev': <Person: Rubin, Salomon>, 'profession': 'Urologe', 'profession_categories': <QuerySet [<ProfessionType: Medizin>]>, 'related_institutions': <RelationPublishedQueryset []>, 'related_persons': None, 'related_places': <RelationPublishedQueryset [<PersonPlace: Rubritius, Hans (geboren in) Klattau>, <PersonPlace: Rubritius, Hans (gestorben in) Wien>]>, 'view': <theme.views.PersonDetailView object at 0x7f6b9917ae50>} |
haupttext | <QuerySet [<Text: ID: 20298 - Stud. Med. an der Univ. P>]> |
person_object | <Person: Rubritius, Hans> |
/usr/local/lib/python3.11/site-packages/apis_highlighter/highlighter.py
, line 75, in highlight_text_new
start = min([x.start for x in an])
end = max([x.end for x in an])
if len(an) > 1:
start_span = """<mark class="highlight hl_text_complex" data-hl-type="complex" data-hl-start="{}" data-hl-end="{}" data-hl-text-id="{}">""".format(
start, end, obj.pk
)
for an2 in an:
_, res_ann = an2.get_html_markup(include_object=True)…
res_annotations.append(res_ann)
else:
start_span, res_ann = an[0].get_html_markup(include_object=True)
res_annotations.append(res_ann)
if lst_end:
html_return += (
Variable | Value |
---|---|
_ | ('<mark class="highlight hl_text_5388" data-hl-type="simple" ' 'data-hl-start="221" data-hl-end="230" data-hl-text-id="20298" ' 'data-hl-ann-id="14896" data-entity-class="PersonPlace" ' 'data-entity-pk="136390" data-related-entity-pk="43917,10841" ' 'data-entity-type="apis_relations" data-user-added=se>') |
an | [<Annotation: 14886>, <Annotation: 12938>, <Annotation: 12902>, <Annotation: 14896>, <Annotation: 13050>, <Annotation: 13051>] |
an2 | <Annotation: 13050> |
ann | <Annotation: 14901> |
ann_proj_pk | False |
anns1 | <QuerySet [<Annotation: 12894>, <Annotation: 13048>, <Annotation: 14892>, <Annotation: 14882>, <Annotation: 12934>, <Annotation: 12896>, <Annotation: 14883>, <Annotation: 14893>, <Annotation: 12935>, <Annotation: 12899>, <Annotation: 14894>, <Annotation: 14884>, <Annotation: 12936>, <Annotation: 13049>, <Annotation: 14885>, <Annotation: 14895>, <Annotation: 12901>, <Annotation: 12937>, <Annotation: 14886>, <Annotation: 12938>, '...(remaining elements truncated)...']> |
anns_fin | [<Annotation: 12894>, <Annotation: 13048>, <Annotation: 14892>, <Annotation: 14882>, <Annotation: 12934>, <Annotation: 12896>, <Annotation: 14883>, <Annotation: 14893>, <Annotation: 12935>, <Annotation: 12899>, <Annotation: 14894>, <Annotation: 14884>, <Annotation: 12936>, <Annotation: 13049>, <Annotation: 14885>, <Annotation: 14895>, <Annotation: 12901>, <Annotation: 12937>, <Annotation: 14886>, <Annotation: 12938>, <Annotation: 12902>, <Annotation: 14896>, <Annotation: 13050>, <Annotation: 13051>, <Annotation: 14887>, <Annotation: 13052>, <Annotation: 12904>, <Annotation: 14897>, <Annotation: 12939>, <Annotation: 14888>, <Annotation: 12940>, <Annotation: 12907>, <Annotation: 13053>, <Annotation: 13054>, <Annotation: 14898>, <Annotation: 14889>, <Annotation: 12909>, <Annotation: 14899>, <Annotation: 12941>, <Annotation: 13055>, <Annotation: 14890>, <Annotation: 12942>, <Annotation: 13056>, <Annotation: 14900>, <Annotation: 12913>, <Annotation: 12914>, <Annotation: 13057>, <Annotation: 14891>, <Annotation: 12943>, <Annotation: 14901>] |
args | (<Text: ID: 20298 - Stud. Med. an der Univ. P>,) |
end | 248 |
html_return | ('Stud. Med. an der <mark class="highlight hl_text_complex" ' 'data-hl-type="complex" data-hl-start="18" data-hl-end="28" ' 'data-hl-text-id="20298">Univ. Prag</mark>, 1901 Dr. med. Seine chirurg. ' 'Ausbildung erhielt er 1902–12 bei <mark class="highlight hl_text_complex" ' 'data-hl-type="complex" data-hl-start="93" data-hl-end="101" ' 'data-hl-text-id="20298">Wölfler </mark>und <mark class="highlight ' 'hl_text_complex" data-hl-type="complex" data-hl-start="105" ' 'data-hl-end="114" data-hl-text-id="20298">Schloffer</mark>. 1910 Priv.Doz. ' 'für Chirurgie an der <mark class="highlight hl_text_complex" ' 'data-hl-type="complex" data-hl-start="152" data-hl-end="162" ' 'data-hl-text-id="20298">Univ. Prag</mark>') |
inline_annotations | True |
kwargs | {} |
lst_annot | [[<Annotation: 12894>, <Annotation: 13048>, <Annotation: 14892>, <Annotation: 14882>, <Annotation: 12934>], [<Annotation: 12896>, <Annotation: 14883>, <Annotation: 14893>, <Annotation: 12935>], [<Annotation: 12899>, <Annotation: 14894>, <Annotation: 14884>, <Annotation: 12936>], [<Annotation: 13049>, <Annotation: 14885>, <Annotation: 14895>, <Annotation: 12901>, <Annotation: 12937>], [<Annotation: 14886>, <Annotation: 12938>, <Annotation: 12902>, <Annotation: 14896>, <Annotation: 13050>, <Annotation: 13051>], [<Annotation: 14887>, <Annotation: 13052>, <Annotation: 12904>, <Annotation: 14897>, <Annotation: 12939>], [<Annotation: 14888>, <Annotation: 12940>, <Annotation: 12907>, <Annotation: 13053>], [<Annotation: 13054>, <Annotation: 14898>], [<Annotation: 14889>, <Annotation: 12909>, <Annotation: 14899>, <Annotation: 12941>, <Annotation: 13055>], [<Annotation: 14890>, <Annotation: 12942>, <Annotation: 13056>, <Annotation: 14900>, <Annotation: 12913>], [<Annotation: 12914>, <Annotation: 13057>, <Annotation: 14891>, <Annotation: 12943>, <Annotation: 14901>]] |
lst_end | 162 |
obj | <Text: ID: 20298 - Stud. Med. an der Univ. P> |
queries | {'text': <Text: ID: 20298 - Stud. Med. an der Univ. P>} |
res_ann | {'end': 230, 'id': 14896, 'related_object': {'id': 136390, 'label': 'Rubritius, Hans (wirkte in) Marienbad', 'type': 'PersonPlace', 'url': 'https://apis.acdh.oeaw.ac.at/apis/api/relations/personplace/136390/'}, 'start': 221} |
res_annotations | [{'end': 28, 'id': 12894, 'related_object': {'id': 133577, 'label': 'Rubritius, Hans (war in Ausbildung) ' 'Karls-Universität Prag (1348-1882)', 'type': 'PersonInstitution', 'url': 'https://apis.acdh.oeaw.ac.at/apis/api/relations/personinstitution/133577/'}, 'start': 18}, {'end': 28, 'id': 13048, 'related_object': {'id': 134333, 'label': 'Rubritius, Hans (war in Ausbildung) Institution ' '(Dummy)', 'type': 'PersonInstitution', 'url': 'https://apis.acdh.oeaw.ac.at/apis/api/relations/personinstitution/134333/'}, 'start': 18}, {'end': 28, 'id': 14892, 'related_object': {'id': 136386, 'label': 'Rubritius, Hans (war in Ausbildung) Institution ' '(Dummy)', 'type': 'PersonInstitution', 'url': 'https://apis.acdh.oeaw.ac.at/apis/api/relations/personinstitution/136386/'}, 'start': 18}, {'end': 28, 'id': 14882, 'related_object': {'id': 136365, 'label': 'Rubritius, Hans (war in Ausbildung) Universität ' 'Prag', 'type': 'PersonInstitution', 'url': 'https://apis.acdh.oeaw.ac.at/apis/api/relations/personinstitution/136365/'}, 'start': 18}, {'end': 28, 'id': 12934, 'related_object': {'id': 133621, 'label': 'Rubritius, Hans (war in Ausbildung) Deutsche ' 'Karl-Ferdinands-Universität (1882-1918)', 'type': 'PersonInstitution', 'url': 'https://apis.acdh.oeaw.ac.at/apis/api/relations/personinstitution/133621/'}, 'start': 18}, {'end': 101, 'id': 12896, 'related_object': {'id': 133579, 'label': 'Rubritius, Hans (stand in Kontakt) Person, ' '(Dummy)', 'type': 'PersonPerson', 'url': 'https://apis.acdh.oeaw.ac.at/apis/api/relations/personperson/133579/'}, 'start': 93}, {'end': 100, 'id': 14883, 'related_object': {'id': 136366, 'label': 'Rubritius, Hans (stand in Kontakt) Person, ' '(Dummy)', 'type': 'PersonPerson', 'url': 'https://apis.acdh.oeaw.ac.at/apis/api/relations/personperson/136366/'}, 'start': 93}, {'end': 100, 'id': 14893, 'related_object': {'id': 136387, 'label': 'Rubritius, Hans (stand in Kontakt) Person, ' '(Dummy)', 'type': 'PersonPerson', 'url': 'https://apis.acdh.oeaw.ac.at/apis/api/relations/personperson/136387/'}, 'start': 93}, {'end': 100, 'id': 12935, 'related_object': {'id': 133622, 'label': 'Rubritius, Hans (stand in Kontakt) Person, ' '(Dummy)', 'type': 'PersonPerson', 'url': 'https://apis.acdh.oeaw.ac.at/apis/api/relations/personperson/133622/'}, 'start': 93}, {'end': 114, 'id': 12899, 'related_object': {'id': 133582, 'label': 'Rubritius, Hans (stand in Kontakt) Person, ' '(Dummy)', 'type': 'PersonPerson', 'url': 'https://apis.acdh.oeaw.ac.at/apis/api/relations/personperson/133582/'}, 'start': 105}, {'end': 114, 'id': 14894, 'related_object': {'id': 136388, 'label': 'Rubritius, Hans (stand in Kontakt) Person, ' '(Dummy)', 'type': 'PersonPerson', 'url': 'https://apis.acdh.oeaw.ac.at/apis/api/relations/personperson/136388/'}, 'start': 105}, {'end': 114, 'id': 14884, 'related_object': {'id': 136367, 'label': 'Rubritius, Hans (stand in Kontakt) Person, ' '(Dummy)', 'type': … <trimmed 7722 bytes string> |
start | 204 |
start_span | ('<mark class="highlight hl_text_complex" data-hl-type="complex" ' 'data-hl-start="204" data-hl-end="248" data-hl-text-id="20298">') |
t_end | 1548 |
t_start | 1518 |
types | False |
users_show | False |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'apis.acdh.oeaw.ac.at' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '193.170.85.96' |
HTTP_X_FORWARDED_HOST | 'apis.acdh.oeaw.ac.at' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_SCHEME | 'https' |
HTTP_X_REAL_IP | '193.170.85.96' |
HTTP_X_REQUEST_ID | 'f2b3666c3d890c95ac0931b9876cf731' |
HTTP_X_SCHEME | 'https' |
PATH_INFO | '/person/43917' |
QUERY_STRING | '' |
RAW_URI | '/person/43917' |
REMOTE_ADDR | '10.42.187.188' |
REMOTE_PORT | '55092' |
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=13, family=2, type=1, proto=0, laddr=('10.42.54.130', 5000), raddr=('10.42.187.188', 55092)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f6b9b3e9000> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7f6ba1adf810> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
apis.settings.biographien
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACDH_IMPRINT_URL | 'https://shared.acdh.oeaw.ac.at/acdh-common-assets/api/imprint.php?serviceID=' |
ADMINS | [] |
ALLOWED_HOSTS | ['0.0.0.0', 'localhost', '172.20.0.3', '172.20.0.1', 'apis-oebl.sisyphos.arz.oeaw.ac.at', 'apis.acdh.oeaw.ac.at', '*'] |
APIS_ALTERNATE_NAMES | '********************' |
APIS_API_EXCLUDE_SETS | '********************' |
APIS_BASE_URI | '********************' |
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_LOCATED_IN_ATTR | '********************' |
APIS_METAINFO | '********************' |
APIS_MIN_CHAR | '********************' |
APIS_NEXT_PREV | '********************' |
APIS_OEBL_BIO_COLLECTION | '********************' |
APIS_OSD_IMG_PREFIX | '********************' |
APIS_OSD_JS | '********************' |
APIS_RELATIONS | '********************' |
APIS_RELATIONS_FILTER_EXCLUDE | '********************' |
APIS_SEARCH_ANNOTATION_PROJECTS | '********************' |
APIS_SEARCH_CAREER | '********************' |
APIS_SEARCH_EDUCATION | '********************' |
APIS_SEARCH_EXCLUDE_NAMES | '********************' |
APIS_SEARCH_TEXTTYPES | '********************' |
APIS_SHOW_ONLY_PUBLISHED | '********************' |
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' |
BIRTH_REL_ID | 595 |
BIRTH_REL_NAME | 'geboren in' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
COMPRESS_PRECOMPILERS | (('text/x-scss', 'django_libsass.SassCompiler'),) |
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', '*.placeholder.com') |
CSP_FRAME_SRC | ('sennierer.github.io',) |
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://apis.acdh.oeaw.ac.at'] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'helios.arz.oeaw.ac.at', 'NAME': 'apis_apis_edit', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'apis'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATA_UPLOAD_MAX_NUMBER_FILES | 100 |
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'] |
DEATH_REL_ID | 596 |
DEATH_REL_NAME | 'gestorben in' |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_AUTO_FIELD | 'django.db.models.AutoField' |
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_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 |
FEATURED_COLLECTION_NAME | 'FEATURED' |
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' |
HAYSTACK_CONNECTIONS | {'default': {'ADMIN_URL': 'http://apis-solr:8983/solr/admin/cores', 'ENGINE': 'haystack.backends.solr_backend.SolrEngine', 'URL': 'http://apis-solr:8983/solr/apis_solr'}} |
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', 'apis_highlighter', 'haystack', 'theme', 'leaflet', 'sass_processor'] |
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'), ('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' |
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 |
MAIN_TEXT_NAME | 'ÖBL Haupttext' |
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 | '********************' |
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 | 'apis' |
PROJECT_SHARED | 'https://shared.acdh.oeaw.ac.at/apis/' |
REDMINE_ID | '17784' |
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' |
SASS_PROCESSOR_ROOT | '/app/theme/static/theme/scss/fundament_oebl' |
SASS_ROOT | '/app/theme/static/theme/scss/fundament_oebl' |
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 | ('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.biographien' |
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', 'sass_processor.finders.CssFinder'] |
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': [], '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_DEPRECATED_PYTZ | False |
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 | 'ALLOW-FROM http://sennierer.github.io/' |
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.