Files
wger/docs/settings.rst
Roland Geider 3ea2489ada Improvements to documentation
Move files in the index to their own TOC. This also enables in the individual
chapters the 'next' and 'previous' links.
2015-02-13 09:08:32 +01:00

24 lines
850 B
ReStructuredText

.. _settings:
Settings
========
You can configure some of the application behaviour with the ``WGER_SETTINGS``
dictionary in your settings file. Currently the following options are supported:
**USE_RECAPTCHA**: Default ``False``.
Controls whether a captcha challenge will be presented when new users register.
**REMOVE_WHITESPACE**: Default ``False``.
Removes whitespaces around HTML tags to reduce the size of the resulting HTML.
If you are not serving the site using TLS you probably want to use the GZip
middleware instead. Read the django documentation on the security implications
(BREACH attack).
.. note::
If you want to override a default setting, don't overwrite all the dictionary
but only the keys you need, e.g. ``WGER_SETTINGS['foo'] = 'bar'``. This avoids
problems when new keys are added in the global settings.