blob: 035ea8ddb0b7209597f48de6c00326f8194a8c4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# git-refinery-web - custom context processor
#
# Copyright (C) 2017 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
from django.contrib.sites.models import Site
def gitrefinery_context(request):
site = Site.objects.get_current()
if site and site.name and site.name != 'example.com':
site_name = site.name
else:
site_name = 'git-refinery'
return {
'site_name': site_name
}
|