kopia lustrzana https://github.com/wagtail/wagtail
Minor adjustment to settings docs
rodzic
daba4aff84
commit
5e589d6376
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue