From da9d504b768b396d50661dd972c90acceebd9786 Mon Sep 17 00:00:00 2001 From: Josh Kelley Date: Wed, 18 Oct 2017 22:24:03 -0400 Subject: [PATCH] Fix link and grammar --- docs/index.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 39815c0..8d04c60 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -218,7 +218,11 @@ Or you can use the included config context processor. For Django pre-1.8, this l 'constance.context_processors.config', ) -For Django 1.8 and above, insert ``'constance.context_processors.config'`` at the top of your ``TEMPLATES['OPTIONS']['context_processors']`` list. See (See the `Django documentation`_ for details. +For Django 1.8 and above, insert ``'constance.context_processors.config'`` at +the top of your ``TEMPLATES['OPTIONS']['context_processors']`` list. See the +`Django documentation`_ for details. + +.. _`Django documentation`: https://docs.djangoproject.com/en/1.11/ref/templates/upgrading/#the-templates-settings This will add the config instance to the context of any template rendered with a ``RequestContext``. @@ -262,7 +266,7 @@ If the value contains spaces it should be wrapped in quotes. .. note:: Set values are validated as per in admin, an error will be raised if validation fails: -Eg, given this config as per the example app:: +E.g., given this config as per the example app:: CONSTANCE_CONFIG = { ... @@ -278,7 +282,7 @@ Then setting an invalid date will fail as follow:: .. note:: If the admin fields is a `MultiValueField`, (e.g. datetime, which uses `SplitDateTimeField` by default) then the separate field values need to be provided as separate arguments. -Eg, given this config:: +E.g., given this config:: CONSTANCE_CONFIG = { 'DATETIME_VALUE': (datetime(2010, 8, 23, 11, 29, 24), 'time of the first commit'),