summaryrefslogtreecommitdiffstats
path: root/core/context.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/context.py')
-rw-r--r--core/context.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/context.py b/core/context.py
index 908cd69..d2de27b 100644
--- a/core/context.py
+++ b/core/context.py
@@ -1,5 +1,13 @@
from django.conf import settings
from troggle.core.models.troggle import Expedition
+'''This is the only troglle-specific 'context processor' that troggle uses
+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
+'''
+
def troggle_context(request):
return { 'settings':settings, 'Expedition':Expedition } \ No newline at end of file