Commit deef26b2 authored by Sergio Alonso's avatar Sergio Alonso

settings: email backend by environment

parent 8347c395
......@@ -143,8 +143,6 @@ LOGIN_REDIRECT_URL = '/account/profile/'
SOCIALACCOUNT_QUERY_EMAIL = True
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Use email as the primary identifier
ACCOUNT_AUTHENTICATION_METHOD = 'email'
ACCOUNT_EMAIL_REQUIRED = True
......
"""Local settings."""
from .base import * # noqa
DEBUG = True
ALLOWED_HOSTS = []
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
"""Production settings."""
try:
from .base import * # noqa
except ImportError:
print('settings could not be imported')
pass
from .base import * # noqa
DEBUG = False
ALLOWED_HOSTS = ['legadoeducativo.com']
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
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