Commit 9a3a6f4a authored by Michal Čihař's avatar Michal Čihař

Check and document production setup for addresses

parent 771f1668
......@@ -73,14 +73,14 @@ options:
Email sender address for outgoing email, for example registration emails.
.. seealso:: https://docs.djangoproject.com/en/1.4/ref/settings/#default-from-email
.. seealso:: `DEFAULT_FROM_EMAIL documentation`_
``SERVER_EMAIL``
Email used as sender address for sending emails to administrator, for
example notifications on failed merge.
.. seealso:: https://docs.djangoproject.com/en/1.4/ref/settings/#server-email
.. seealso:: `SERVER_EMAIL documentation`_
After your configuration is ready, you can run :program:`./manage.py syncdb` and
:program:`./manage.py migrate` to create database structure. Now you should be
......@@ -196,6 +196,28 @@ for example:
.. seealso:: `Django’s cache framework <https://docs.djangoproject.com/en/1.4/topics/cache/>`_
.. _production-email:
Email addresses
+++++++++++++++
Weblate needs to send out emails on several occasions and these emails should
have correct sender address, please configure ``SERVER_EMAIL`` and
``DEFAULT_FROM_EMAIL`` to match your environment, for example:
.. code-block:: python
SERVER_EMAIL = 'admin@example.org'
DEFAULT_FROM_EMAIL = 'weblate@example.org'
.. seealso::
:ref:`installation`,
`DEFAULT_FROM_EMAIL documentation`_,
`SERVER_EMAIL documentation`_
.. _DEFAULT_FROM_EMAIL documentation: https://docs.djangoproject.com/en/1.4/ref/settings/#default-from-email
.. _SERVER_EMAIL documentation: https://docs.djangoproject.com/en/1.4/ref/settings/#server-email
.. _server:
Running server
......
......@@ -91,6 +91,12 @@ def performance(request):
cache,
'production-cache',
))
# Check email setup
checks.append((
_('Email addresses'),
settings.SERVER_EMAIL != 'root@localhost' and DEFAULT_FROM_EMAIL != 'webmaster@localhost',
'production-email',
))
return render_to_response("admin/performance.html", RequestContext(request, {
'checks': checks,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment