Revert "ci: print layout render error in template debug"
This reverts commit 5359a0a5e2.
This commit is contained in:
@@ -16,7 +16,6 @@ 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.template import Context; \
|
|
||||||
import pathlib; \
|
import pathlib; \
|
||||||
import os; \
|
import os; \
|
||||||
import mandelstudio; \
|
import mandelstudio; \
|
||||||
@@ -31,13 +30,6 @@ 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: \
|
|
||||||
t3=get_template('layout.html'); \
|
|
||||||
t3.render(Context({'request': None})); \
|
|
||||||
print('render_layout_ok=True'); \
|
|
||||||
except Exception as exc: \
|
|
||||||
print('render_layout_ok=False'); \
|
|
||||||
print('render_layout_error=' + repr(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"
|
||||||
|
|||||||
Reference in New Issue
Block a user