django-beehat / docs / context_processors.rst

Context Processors


  • If deploying on mod_wsgi, you will have to apply this patch. You can install a pre-patched version of Mercurial via:

    pip install -e hg+
  • Add beehat.context_processors.vcs to the TEMPLATE_CONTEXT_PROCESSORS in :file:``:

  • Optionally, in define REPO_DIR as path to repository root. Defaults to ..

  • In the Django template, you now have access to the {{ rev }} and {{ tag }} template tags.