· 6 years ago · Feb 27, 2019, 04:04 PM
1from os import environ
2from Flask_Auth.manage import application
3
4import Flask_Auth.manage
5
6if __name__ == '__main__':
7 #application.debug = True
8 application.run()
9
10import os
11basedir = os.path.abspath(os.path.dirname(__file__))
12postgres_local_base = 'postgresql:///postgres:123123123!@confudb.cusmbtiketg6.ap-south-1.rds.amazonaws.com/confudb'
13
14database_name = 'confudb'
15#'postgresql://postgres:admin@localhost/'
16#'flask_jwt_auth'
17
18class BaseConfig:
19 """Base configuration."""
20 SECRET_KEY = os.getenv('SECRET_KEY', 'yn=xc5xfanBxb8tnx83xbefx8axe3xddEx17x06xc9x96x8ec|')
21 DEBUG = False
22 CSRF_ENABLED = True
23 BCRYPT_LOG_ROUNDS = 13
24 SQLALCHEMY_TRACK_MODIFICATIONS = False
25
26
27class DevelopmentConfig(BaseConfig):
28 """Development configuration."""
29 DEVELOPMENT = True
30 DEBUG = True
31 BCRYPT_LOG_ROUNDS = 4
32 SQLALCHEMY_DATABASE_URI = postgres_local_base