From 2467065ac35e17938750f1d977ecf799f529ee07 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 13 Apr 2021 02:29:24 +0100 Subject: [PATCH] actually needed it seems. --- core/context.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/context.py b/core/context.py index d2de27b..9ad13d1 100644 --- a/core/context.py +++ b/core/context.py @@ -7,7 +7,11 @@ in the processing of Django templates This seems to mean that every page produced has bundled in its context the complete 'settings' and the expedition class object, so all templates can doe queries on Expedition. https://betterprogramming.pub/django-quick-tips-context-processors-da74f887f1fc + +If it is commented out, the logbookentry page goes crazy and the screws up all the site_media resultions for CSS file s! +Seems to be necessary to make {{settings.MEDIA_URL}} work. Which is obvious in retrospect. ''' def troggle_context(request): + return { 'settings':settings} return { 'settings':settings, 'Expedition':Expedition } \ No newline at end of file