You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
308 B
10 lines
308 B
# -*- coding: utf-8 -*-
|
|
"""Create an application instance."""
|
|
from flask.helpers import get_debug_flag
|
|
|
|
from {{cookiecutter.app_name}}.app import create_app
|
|
from {{cookiecutter.app_name}}.settings import DevConfig, ProdConfig
|
|
|
|
CONFIG = DevConfig if get_debug_flag() else ProdConfig
|
|
|
|
app = create_app(CONFIG)
|
|
|