.. _base:

Base
====

.. module:: swingers.base
   :synopsis: Swingers' base toolset.

Swingers' base toolset.

Context processors
------------------

.. currentmodule:: swingers.base.context_processors

.. function:: standard(request)

    Adds some extra variables to the template context.

    **sitetitle**
        ``settings.SITE_TITLE``

    **application_version_no**
        ``settings.APPLICATION_VERSION_NO``

    **production_site**
        If the host environment is ``'prod'``, this is ``True``.
        Otherwise, it is ``False``.

    **hostenv**
        The current host environment.

    **date_today**
        The current date.

    **DEC_CDN**
        ``settings.DEC_CDN``

    **CDNJS_URL**
        ``settings.CDNJS_URL``

    **PERSONA_LOGIN**
        ``settings.PERSONA_LOGIN``


Urls
----

.. currentmodule:: swingers.base

.. data:: urls

    Adds browser_id/, api/persona/, login/, logout/, confluence/,
    api/swingers/v1, favicon.ico and docs/ url endpoints.
