production.py 678 Bytes
Newer Older
Sergio Alonso's avatar
Sergio Alonso committed
1 2
"""Production settings."""

3 4
import os

5
from .base import *  # noqa
Sergio Alonso's avatar
Sergio Alonso committed
6 7 8

DEBUG = False

9
ALLOWED_HOSTS = ['legadoeducativo.com', 'staging.legadoeducativo.com', 'www.legadoeducativo.com']
10

11 12 13 14 15 16
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = os.environ["GMAIL_USERNAME"]
EMAIL_HOST_PASSWORD = os.environ["GMAIL_PASSWORD"]
EMAIL_USE_TLS = True
17 18 19 20 21 22 23 24 25 26 27


SECURE_HSTS_SECONDS = 60
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_CONTENT_TYPE_NOSNIFF = True
SECURE_BROWSER_XSS_FILTER = True
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
CSRF_COOKIE_HTTPONLY = True
X_FRAME_OPTIONS = "DENY"