You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iTi-Flask/copier-template/app.py.jinja

17 lines
362 B
Django/Jinja

from iti import create_app
{% if include_system %}from iti_system import create_system_module
{% endif -%}
from config import config
from {{ project_slug }}.modules.example.module import ExampleModule
modules = [
ExampleModule(),
{% if include_system %} create_system_module(),
{% endif -%}
]
app = create_app(config_mapping=config, modules=modules)