Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 463 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 463 Bytes

curso_django

Apuntes, ejercicios django

#SET HTTPS

SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

SECURE_SSL_REDIRECT = True

SESSION_COOKIE_SECURE = True

CSRF_COOKIE_SECURE = True

#ENV Install python-decouple Create .env where manage.py is

SECRET_KEY = config('SECRET_KEY') DEBUG = config('DEBUG', default=False, cast=bool) EMAIL_HOST = config('EMAIL_HOST', default='localhost') EMAIL_PORT = config('EMAIL_PORT', default=25, cast=int)