123456789101112131415161718192021222324252627282930313233 |
- import os
- BASEDIR = os.path.abspath(os.path.dirname(__file__))
- TOP_LEVEL_DIR = os.path.abspath(os.curdir)
- class Config(object):
- DEBUG = False
- TESTING = False
- CSRF_ENABLED = True
- SECRET_KEY = os.environ.get('SECRET_KEY') or 'add-your-random-key-here'
- S3_BUCKET = os.environ.get('S3_BUCKET')
- S3_KEY = os.environ.get('S3_KEY')
- S3_SECRET = os.environ.get('S3_SECRET_ACCESS_KEY')
- S3_LOCATION = 'http://{}.s3.amazonaws.com/'.format(S3_BUCKET)
- ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
- class ProductionConfig(Config):
- DEBUG = False
- class StagingConfig(Config):
- DEVELOPMENT = True
- DEBUG = True
- class DevelopmentConfig(Config):
- DEVELOPMENT = True
- DEBUG = True
- class TestingConfig(Config):
- TESTING = True
|