mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-06-15 12:36:05 +00:00
Improve things for using PostgreSQL
This commit is contained in:
@ -27,6 +27,7 @@ CAPTCHA_SESSION_KEY = 'captcha_image'
|
||||
SESSION_TYPE = 'sqlalchemy'
|
||||
|
||||
### DATABASE - MySQL
|
||||
## Don't forget to uncomment the import in the top
|
||||
#SQLALCHEMY_DATABASE_URI = 'mysql://{}:{}@{}/{}'.format(
|
||||
# urllib.parse.quote_plus(SQLA_DB_USER),
|
||||
# urllib.parse.quote_plus(SQLA_DB_PASSWORD),
|
||||
@ -34,6 +35,15 @@ SESSION_TYPE = 'sqlalchemy'
|
||||
# SQLA_DB_NAME
|
||||
#)
|
||||
|
||||
### DATABASE - PostgreSQL
|
||||
## Don't forget to uncomment the import in the top
|
||||
#SQLALCHEMY_DATABASE_URI = 'postgres://{}:{}@{}/{}'.format(
|
||||
# urllib.parse.quote_plus(SQLA_DB_USER),
|
||||
# urllib.parse.quote_plus(SQLA_DB_PASSWORD),
|
||||
# SQLA_DB_HOST,
|
||||
# SQLA_DB_NAME
|
||||
#)
|
||||
|
||||
### DATABASE - SQLite
|
||||
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'pdns.db')
|
||||
|
||||
|
Reference in New Issue
Block a user