Expand site settings and add footer
This commit is contained in:
parent
b33ea40da2
commit
117d243577
4 changed files with 56 additions and 2 deletions
8
bookwyrm/context_processors.py
Normal file
8
bookwyrm/context_processors.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
''' customize the info available in context for rendering templates '''
|
||||
from bookwyrm import models
|
||||
|
||||
def site_settings(request):
|
||||
''' include the custom info about the site '''
|
||||
return {
|
||||
'site': models.SiteSettings.objects.get()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue