import os

from app.utils import read_env

basedir = os.path.abspath(os.path.dirname(__file__))


class Config(object):
    # Import environment variables from .env file, if such file exists.
    read_env(basedir)

    # CSRF secret key
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'asdfsdafdsfdsfds'

    # SQLAlchemy configuration keys, list of all keys:
    # https://pythonhosted.org/Flask-SQLAlchemy/config.html
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True

    # Access Bootstrap js files locally
    BOOTSTRAP_SERVE_LOCAL = True

    @staticmethod
    def init_app(app):
        pass


class DevelopmentConfig(Config):
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') or \
                              'sqlite:///' + os.path.join(basedir,
                                                          'data-dev.sqlite')

class TestingConfig(Config):
    TESTING = True
    SQLALCHEMY_DATABASE_URI = os.environ.get('TEST_DATABASE_URL') or \
                              'sqlite:///' + os.path.join(basedir,
                                                          'data-test.sqlite')

class ProductionConfig(Config):
    SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
                              'sqlite:///' + os.path.join(basedir,
                                                          'data.sqlite')


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

    'default': DevelopmentConfig
}

@@ -284,24 +284,28 @@
 or '
-asdfsdafdsfdsfds
+hard_to_guess_string
 '%0A%0A 

Update CSRF Token String