1
0
Fork 0
bookwyrm/bookwyrm/context_processors.py

9 lines
282 B
Python
Raw Normal View History

2020-12-11 12:31:02 -08:00
''' customize the info available in context for rendering templates '''
from bookwyrm import models
2020-12-12 18:13:00 -08:00
def site_settings(request):# pylint: disable=unused-argument
2020-12-11 12:31:02 -08:00
''' include the custom info about the site '''
return {
'site': models.SiteSettings.objects.get()
}