mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-05 21:24:46 +02:00

Added SPDX identifiers to all .py files except those in migrations directory. Fixes: [YOCTO #13527] Signed-off-by: Meh Mbeh Ida Delphine <idadelm@gmail.com> Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
22 lines
542 B
Python
22 lines
542 B
Python
# rrs-web - custom context processor
|
|
#
|
|
# Copyright (C) 2014 Intel Corporation
|
|
#
|
|
# Licensed under the MIT license, see COPYING.MIT for details
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
import settings
|
|
from django.contrib.sites.models import Site
|
|
|
|
def rrs_context(request):
|
|
site = Site.objects.get_current()
|
|
if site and site.name and site.name != 'example.com':
|
|
site_name = site.name
|
|
else:
|
|
site_name = 'Recipe reporting system'
|
|
return {
|
|
'site_name': site_name,
|
|
'application' : settings.APPLICATION
|
|
}
|