"""
File to easily switch between configurations between production and
development, etc.
"""

import os


# You must set each of these in your heroku environment with the heroku
# config:set command. See README.md for more information.
HEROKU_ENV_REQUIREMENTS = ('HEROKU', 'SECRET_KEY', 'GITHUB_CLIENT_ID',
                           'GITHUB_SECRET', 'DATABASE_URL',
                           'SQLALCHEMY_DATABASE_URI', 'REPO_OWNER',
                           'REPO_NAME')


class Config(object):
    DEBUG = False
    CSRF_ENABLED = True
    GITHUB_CLIENT_ID = 'replace-me'
    GITHUB_SECRET = 'replace-me'
    HEROKU = False
    SECRET_KEY = 'not-a-good-value'

    # Details of the repo where all articles are stored.  The GITHUB_CLIENT_ID
    # and GITHUB_SECRET should allow full-access to this database.
    REPO_OWNER = None
    REPO_NAME = None

    # This should automatically be set by heroku if you've added a database to
    # your app.
    SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']


class DevelopmentConfig(Config):
    DEBUG = True

"""
File to easily switch between configurations between production and
development, etc.
"""

import os


# You must set each of these in your heroku environment with the heroku
# config:set command. See README.md for more information.
HEROKU_ENV_REQUIREMENTS = ('HEROKU', 'SECRET_KEY', 'GITHUB_CLIENT_ID',
                           'GITHUB_SECRET', 'DATABASE_URL',
                           'SQLALCHEMY_DATABASE_URI', 'REPO_OWNER',
                           'REPO_NAME', 'REPO_OWNER_ACCESS_TOKEN')



class Config(object):
    DEBUG = False
    CSRF_ENABLED = True
    GITHUB_CLIENT_ID = 'replace-me'
    GITHUB_SECRET = 'replace-me'
    HEROKU = False
    SECRET_KEY = 'not-a-good-value'

    # Details of the repo where all articles are stored.  The GITHUB_CLIENT_ID
    # and GITHUB_SECRET should allow full-access to this database.
    REPO_OWNER = None
    REPO_NAME = None
    REPO_OWNER_ACCESS_TOKEN = None

    # This should automatically be set by heroku if you've added a database to
    # your app.
    SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']


class DevelopmentConfig(Config):
    DEBUG = True

Add new environment variable so we can create articles with different committer and author
Add new environment variable so we can create articles with different committer and author
