Commits

Ian Lewis committed 9716edf

Updated the context processors doc.

  • Participants
  • Parent commits 6a0fcaf

Comments (0)

Files changed (2)

File docs/en/source/install.rst

 
 .. function:: beproud.django.ssl.context_processors.conf
 
-Add the :func:`ssl <beproud.django.ssl.context_processors.conf>` context processor to
+Add the :func:`beproud.django.ssl.context_processors.conf` context processor to
 your `TEMPLATE_CONTEXT_PROCESSORS`_ setting.
 
 .. code-block:: python

File docs/ja/source/install.rst

         #...
     )
 
-.. TODO: Context processor
+コンテキストプロセッサー
+-----------------------------
+
+.. function:: beproud.django.ssl.context_processors.conf
+
+:func:`beproud.django.ssl.context_processors.conf` コンテキストプロセッサーを
+`TEMPLATE_CONTEXT_PROCESSORS`_ に追加してください。
+
+.. code-block:: python
+
+    TEMPLATE_CONTEXT_PROCESSORS = (
+        #...
+        'beproud.django.ssl.context_processors.conf',
+        #...
+    )
 
 ミドルウエアを設定
 -----------------------------
 .. _`request.is_secure()`: http://djangoproject.jp/doc/ja/1.0/ref/request-response.html#django.http.HttpRequest.is_secure
 .. _`INSTALLED_APPS`: http://djangoproject.jp/doc/ja/1.0/ref/settings.html#installed-apps
 .. _`MIDDLEWARE_CLASSES`: http://djangoproject.jp/doc/ja/1.0/ref/settings.html#setting-MIDDLEWARE_CLASSES 
+.. _`TEMPLATE_CONTEXT_PROCESSORS`: http://djangoproject.jp/doc/ja/1.0/ref/settings.html#template-context-processors