Docstrings for all modules

This commit is contained in:
Philip Sargent
2021-04-13 01:37:42 +01:00
parent 267741fa8b
commit 0820d7c0dc
15 changed files with 50 additions and 17 deletions

View File

@@ -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 }