Source code for distro_tracker.core.context_processors

# Copyright 2013 The Distro Tracker Developers
# See the COPYRIGHT file at the top-level directory of this distribution and
# at
# This file is part of Distro Tracker. It is subject to the license terms
# in the LICENSE file found in the top-level directory of this
# distribution and at No part of Distro Tracker,
# including this file, may be copied, modified, propagated, or distributed
# except according to the terms contained in the LICENSE file.
"""Implements Django context processors specific to Distro Tracker."""
from django.conf import settings

#: Defines a dictionary of all Distro Tracker extra context key/value pairs that
#: are to be included in the
#: :class:`RequestContext <django.template.RequestContext>`.

[docs]def extras(request): """ The context processor which includes the :py:data:`DISTRO_TRACKER_EXTRAS <distro_tracker.core.context_processors.DISTRO_TRACKER_EXTRAS>` in the :class:`RequestContext <django.template.RequestContext>`. """ return DISTRO_TRACKER_EXTRAS