context processors: return mini-template if there's no skeleton url (#73796) #13

Merged
fpeters merged 1 commits from wip/73796-no-theme-skeleton-url into main 2023-01-27 08:25:42 +01:00
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ class RemoteTemplate:
# deployed.
return Template('<html><body>{% block content %}{% endblock %}</body></html>')
self.theme_skeleton_url = context['portal_url'] + '__skeleton__/'
elif not settings.THEME_SKELETON_URL:
return Template('<html><body>{% block content %}{% endblock %}</body></html>')
else:
self.theme_skeleton_url = settings.THEME_SKELETON_URL
if item is None: