#!/usr/bin/env python3
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
    CSRF_ENABLED = True
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    FLASKY_MAIL_SUBJECT_PREFIX = '[Flasky]'
    FLASKY_MAIL_SENDER = '462108437@qq.com'
    FLASKY_ADMIN = 'ysrobot@163.com'
    MAIL_SERVER = 'smtp.qq.com'
    MAIL_PORT = 465
    MAIL_USE_TLS = False
    MAIL_USE_SSL = True
    MAIL_USERNAME = '462108437'
    MAIL_PASSWORD = 'inbozkzrnxadbgga'
     
    FLASKY_POSTS_PER_PAGE = 20
    FLASKY_FOLLOWERS_PER_PAGE = 50
    FLASKY_COMMENTS_PER_PAGE = 30
    FLASKY_SLOW_DB_QUERY_TIME=0.5
    @staticmethod
    def init_app(app):
        pass

class DevelopmentConfig(Config):
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/Blog_db'
class TestingConfig(Config):
    TESTING = True
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/test'
class ProductionConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/Blog_db'
 
config = {
        'development': DevelopmentConfig,
        'testing': TestingConfig,
        'production': ProductionConfig,
        'default': DevelopmentConfig
        }


bd8364a2ab817ae83d16cbbc7873dc4238c9e624
<mask token>


class DevelopmentConfig(Config):
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/Blog_db'


class TestingConfig(Config):
    TESTING = True
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/test'


class ProductionConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/Blog_db'


<mask token>

<mask token>


class Config:
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    @staticmethod
    def init_app(app):
        pass


class DevelopmentConfig(Config):
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/Blog_db'


class TestingConfig(Config):
    TESTING = True
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/test'


class ProductionConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/Blog_db'


<mask token>

<mask token>


class Config:
    CSRF_ENABLED = True
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    FLASKY_MAIL_SUBJECT_PREFIX = '[Flasky]'
    FLASKY_MAIL_SENDER = '462108437@qq.com'
    FLASKY_ADMIN = 'ysrobot@163.com'
    MAIL_SERVER = 'smtp.qq.com'
    MAIL_PORT = 465
    MAIL_USE_TLS = False
    MAIL_USE_SSL = True
    MAIL_USERNAME = '462108437'
    MAIL_PASSWORD = 'inbozkzrnxadbgga'
    FLASKY_POSTS_PER_PAGE = 20
    FLASKY_FOLLOWERS_PER_PAGE = 50
    FLASKY_COMMENTS_PER_PAGE = 30
    FLASKY_SLOW_DB_QUERY_TIME = 0.5

    @staticmethod
    def init_app(app):
        pass


class DevelopmentConfig(Config):
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/Blog_db'


class TestingConfig(Config):
    TESTING = True
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/test'


class ProductionConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/Blog_db'


<mask token>

<mask token>
basedir = os.path.abspath(os.path.dirname(__file__))


class Config:
    CSRF_ENABLED = True
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    FLASKY_MAIL_SUBJECT_PREFIX = '[Flasky]'
    FLASKY_MAIL_SENDER = '462108437@qq.com'
    FLASKY_ADMIN = 'ysrobot@163.com'
    MAIL_SERVER = 'smtp.qq.com'
    MAIL_PORT = 465
    MAIL_USE_TLS = False
    MAIL_USE_SSL = True
    MAIL_USERNAME = '462108437'
    MAIL_PASSWORD = 'inbozkzrnxadbgga'
    FLASKY_POSTS_PER_PAGE = 20
    FLASKY_FOLLOWERS_PER_PAGE = 50
    FLASKY_COMMENTS_PER_PAGE = 30
    FLASKY_SLOW_DB_QUERY_TIME = 0.5

    @staticmethod
    def init_app(app):
        pass


class DevelopmentConfig(Config):
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/Blog_db'


class TestingConfig(Config):
    TESTING = True
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/test'


class ProductionConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/Blog_db'


config = {'development': DevelopmentConfig, 'testing': TestingConfig,
    'production': ProductionConfig, 'default': DevelopmentConfig}

#!/usr/bin/env python3
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
    CSRF_ENABLED = True
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    FLASKY_MAIL_SUBJECT_PREFIX = '[Flasky]'
    FLASKY_MAIL_SENDER = '462108437@qq.com'
    FLASKY_ADMIN = 'ysrobot@163.com'
    MAIL_SERVER = 'smtp.qq.com'
    MAIL_PORT = 465
    MAIL_USE_TLS = False
    MAIL_USE_SSL = True
    MAIL_USERNAME = '462108437'
    MAIL_PASSWORD = 'inbozkzrnxadbgga'
     
    FLASKY_POSTS_PER_PAGE = 20
    FLASKY_FOLLOWERS_PER_PAGE = 50
    FLASKY_COMMENTS_PER_PAGE = 30
    FLASKY_SLOW_DB_QUERY_TIME=0.5
    @staticmethod
    def init_app(app):
        pass

class DevelopmentConfig(Config):
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/Blog_db'
class TestingConfig(Config):
    TESTING = True
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/test'
class ProductionConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql://blog:123456@localhost/Blog_db'
 
config = {
        'development': DevelopmentConfig,
        'testing': TestingConfig,
        'production': ProductionConfig,
        'default': DevelopmentConfig
        }

