Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added FROM_EMAIL env variable

  • Loading branch information...
commit 98ca61fc7ff01d7d659d90b949089a5381da378f 1 parent 36df2ea
@brutasse brutasse authored
View
2  README.rst
@@ -74,6 +74,8 @@ environment variables are:
* ``SECRET_KEY``: set to a long random string.
* ``ALLOWED_HOSTS``: space-separated list of hosts which serve the web app.
E.g. ``www.feedhq.org feedhq.org``.
+* ``FROM_EMAIL``: the email address that sends automated emails (password
+ lost, etc.). E.g. ``FeedHQ <feedhq@example.com>``.
* ``REDIS_URL``: a URL for configuring redis. E.g.
``redis://localhost:6354/1``.
* ``DATABASE_URL``: a heroku-like database URL. E.g.
View
1  envdir/FROM_EMAIL
@@ -0,0 +1 @@
+FeedHQ <feedhq@example.com>
View
1  feedhq/settings.py
@@ -51,6 +51,7 @@
'CachedStaticFilesStorage')
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
+DEFAULT_FROM_EMAIL = SERVER_EMAIL = os.environ['FROM_EMAIL']
AUTHENTICATION_BACKENDS = (
'feedhq.backends.RateLimitMultiBackend',
View
1  tests/envdir/FROM_EMAIL
@@ -0,0 +1 @@
+test@example.com
Please sign in to comment.
Something went wrong with that request. Please try again.