Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
9a3a6f4a
Commit
9a3a6f4a
authored
Nov 27, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check and document production setup for addresses
parent
771f1668
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
docs/install.rst
docs/install.rst
+24
-2
weblate/trans/admin_views.py
weblate/trans/admin_views.py
+6
-0
No files found.
docs/install.rst
View file @
9a3a6f4a
...
...
@@ -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
...
...
weblate/trans/admin_views.py
View file @
9a3a6f4a
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment