How to display the site's user friendly name in a template in Django?
make sure to add 'django.core.context_processors.request'
to your context processors.
Like so:
TEMPLATES = [
{
...
'OPTIONS': {
'context_processors': [
...
'django.core.context_processors.request',
],
},
},
]
Also add django.contrib.sites.middleware.CurrentSiteMiddleware
to your MIDDLEWARE
settings.