ci: print homepage exception in staging template debug

This commit is contained in:
2026-05-03 00:45:41 +02:00
parent 891639c7fc
commit 9624eec735

View File

@@ -16,8 +16,10 @@ trap 'rm -f "$TMP_FILE" "$TMP_DEBUG"' EXIT
REMOTE_DEBUG_CMD="cd '${STAGING_AUDIT_PROJECT_DIR}' && '${STAGING_AUDIT_MANAGE}' shell -c \"\ REMOTE_DEBUG_CMD="cd '${STAGING_AUDIT_PROJECT_DIR}' && '${STAGING_AUDIT_MANAGE}' shell -c \"\
from django.template.loader import get_template; \ from django.template.loader import get_template; \
from django.test import Client; \
import pathlib; \ import pathlib; \
import os; \ import os; \
import traceback; \
import mandelstudio; \ import mandelstudio; \
print('DJANGO_SETTINGS_MODULE=' + os.environ.get('DJANGO_SETTINGS_MODULE','')); \ print('DJANGO_SETTINGS_MODULE=' + os.environ.get('DJANGO_SETTINGS_MODULE','')); \
troot = pathlib.Path(mandelstudio.__file__).resolve().parent; \ troot = pathlib.Path(mandelstudio.__file__).resolve().parent; \
@@ -30,6 +32,14 @@ t1=get_template('carbasa/headers/header.html'); \
t2=get_template('engine/pages/base_home_page.html'); \ t2=get_template('engine/pages/base_home_page.html'); \
print('carbasa/headers/header.html -> ' + getattr(getattr(t1,'origin',None),'name','(no origin)')); \ print('carbasa/headers/header.html -> ' + getattr(getattr(t1,'origin',None),'name','(no origin)')); \
print('engine/pages/base_home_page.html -> ' + getattr(getattr(t2,'origin',None),'name','(no origin)')); \ print('engine/pages/base_home_page.html -> ' + getattr(getattr(t2,'origin',None),'name','(no origin)')); \
try: \
c=Client(); \
r=c.get('/'); \
print('debug_home_status=' + str(r.status_code)); \
except Exception as exc: \
print('debug_home_status=EXC'); \
print('debug_home_exc=' + repr(exc)); \
traceback.print_exc(); \
\"" \""
REMOTE_CMD="cd '${STAGING_AUDIT_PROJECT_DIR}' && '${STAGING_AUDIT_MANAGE}' audit_locales --format=json" REMOTE_CMD="cd '${STAGING_AUDIT_PROJECT_DIR}' && '${STAGING_AUDIT_MANAGE}' audit_locales --format=json"