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.
23 lines
436 B
Django/Jinja
23 lines
436 B
Django/Jinja
import os
|
|
|
|
from iti import create_app
|
|
{% if include_system %}from iti_system import create_system_module
|
|
|
|
{% endif -%}
|
|
from config import config
|
|
from app.modules.example.module import ExampleModule
|
|
|
|
|
|
modules = [
|
|
ExampleModule(),
|
|
{% if include_system %} create_system_module(),
|
|
{% endif -%}
|
|
]
|
|
|
|
|
|
app = create_app(
|
|
config_name=os.getenv("APP_ENV", os.getenv("ITI_ENV", "dev")),
|
|
config_mapping=config,
|
|
modules=modules,
|
|
)
|