"""Create an application instance."""
from flask.helpers import get_debug_flag

from sampleapp.app import create_app
from sampleapp.settings import DevConfig
from sampleapp.settings import ProdConfig

CONFIG = DevConfig if get_debug_flag() else ProdConfig

app = create_app(CONFIG)
