app_server.configuration.database.prod_config module¶
- Module
production_config.py
- Copyright
Copyright (C) 2017 - 2024 Vladimir Roncevic <elektron.ronca@gmail.com> config_flask is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. config_flask is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
- Info
Defines class ProdConfig with attribute(s) and method(s). Production database configuration.
- class app_server.configuration.database.prod_config.ProdConfig[source]¶
Bases:
BaseConfig
Defines class ProdConfig with attribute(s) and method(s). Production database configuration.
It defines:
- attributes:
- DB_USER - Database connection username.DB_PASSWORD - Database connection user password.DB_HOST - Database server address.DB_PORT - Database server port.DB_DIALECT - Database dialect prefix.SQLALCHEMY_DATABASE_URI - Set DB URI.
- methods:
- None
- DB_DIALECT: str = 'postgresql'¶
- DB_HOST: str = '127.0.0.1'¶
- DB_LOGIN: str = 'mydbuser:mydbpassword'¶
- DB_NAME: str = 'manage_users'¶
- DB_PASSWORD: str = 'mydbpassword'¶
- DB_PORT: str = 5432¶
- DB_SERVER: str = '127.0.0.1:5432'¶
- DB_USER: str = 'mydbuser'¶
- SQLALCHEMY_DATABASE_URI: str = 'postgresql://127.0.0.1:5432/manage_users'¶