flask and registration postgres

Solutions on MaxInterview for flask and registration postgres by the best coders in the world

showing results for - "flask and registration postgres"
Tommaso
11 Nov 2017
1import os
2basedir = os.path.abspath(os.path.dirname(__file__))
3
4
5class Config(object):
6    DEBUG = False
7    TESTING = False
8    CSRF_ENABLED = True
9    SECRET_KEY = 'this-really-needs-to-be-changed'
10    SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
11
12
13class ProductionConfig(Config):
14    DEBUG = False
15
16
17class StagingConfig(Config):
18    DEVELOPMENT = True
19    DEBUG = True
20
21
22class DevelopmentConfig(Config):
23    DEVELOPMENT = True
24    DEBUG = True
25
26
27class TestingConfig(Config):
28    TESTING = True
29
similar questions
queries leading to this page
flask and registration postgres