use STACKTACH_DB_PORT
This commit is contained in:
parent
54dd9d48eb
commit
3c6cc39123
@ -9,6 +9,7 @@ try:
|
||||
db_host = STACKTACH_DB_HOST
|
||||
db_username = STACKTACH_DB_USERNAME
|
||||
db_password = STACKTACH_DB_PASSWORD
|
||||
db_port = STACKTACH_DB_PORT
|
||||
install_dir = STACKTACH_INSTALL_DIR
|
||||
except ImportError:
|
||||
db_engine = os.environ.get('STACKTACH_DB_ENGINE',
|
||||
@ -17,6 +18,7 @@ except ImportError:
|
||||
db_host = os.environ.get('STACKTACH_DB_HOST', "")
|
||||
db_username = os.environ['STACKTACH_DB_USERNAME']
|
||||
db_password = os.environ['STACKTACH_DB_PASSWORD']
|
||||
db_port = os.environ['STACKTACH_DB_PORT']
|
||||
install_dir = os.environ['STACKTACH_INSTALL_DIR']
|
||||
|
||||
DEBUG = False
|
||||
@ -35,7 +37,7 @@ DATABASES = {
|
||||
'USER': db_username,
|
||||
'PASSWORD': db_password,
|
||||
'HOST': db_host, # Set to empty string for localhost.
|
||||
'PORT': '', # Set to empty string for default.
|
||||
'PORT': db_port, # Set to empty string for default.
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user