update django settings for local and production

This commit is contained in:
Tomislav R 2016-03-22 22:09:22 +01:00
commit 105dad3b9f
4 changed files with 430 additions and 427 deletions

View file

@ -40,7 +40,6 @@ LOGIN_REDIRECT_URL = None
EMAIL_HOST = "localhost"
EMAIL_PORT = 25
SECRET_KEY = env('DJANGO_SECRET_KEY')
# Application definition
@ -430,6 +429,11 @@ REGISTRATION_MESSAGE = {'subject': "Validation mail",
'message': 'Please validate Your account under this link http://localhost:8000/en-us/validate/{}',
'from': 'test@test.com'}
DEBUG = True
if DEBUG:
from .local import *
else:
from .prod import *
#dont migrate test
# SOUTH_TESTS_MIGRATE = False