Minor adjustment to settings docs

pull/2200/head
Chris Rogers 2016-01-24 22:00:51 +00:00 zatwierdzone przez Matt Westcott
rodzic daba4aff84
commit 5e589d6376
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -118,6 +118,8 @@ Then access the settings through ``{{ settings }}``:
{{ settings.app_label.SocialMediaSettings.instagram }}
(Replace ``app_label`` with the label of the app containing your settings model.)
If you are not in a ``RequestContext``, then context processors will not have run, and the ``settings`` variable will not be availble. To get the ``settings``, use the provided ``{% get_settings %}`` template tag. If a ``request`` is in the template context, but for some reason it is not a ``RequestContext``, just use ``{% get_settings %}``:
.. code-block:: html+django