Fixed Settings

This commit is contained in:
Antoine Bartuccio 2016-09-04 14:19:56 +02:00
parent 8328e668bd
commit 5ca8a22123

View File

@ -17,13 +17,8 @@ from django.utils.translation import ugettext_lazy as _
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DEV_ENV = True
if (DEV_ENV):
os.environ['HTTPS'] = "off" os.environ['HTTPS'] = "off"
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
else:
os.environ['HTTPS'] = "on"
# Quick-start development settings - unsuitable for production # Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/