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.
26 lines
526 B
Django/Jinja
26 lines
526 B
Django/Jinja
from iti.applications import create_app
|
|
{% if include_system %}from iti_system import create_system_module
|
|
|
|
{% endif -%}
|
|
from config import config
|
|
from {{ project_slug }}.models import import_models
|
|
from {{ project_slug }}.modules.example.module import ExampleModule
|
|
|
|
|
|
modules = [
|
|
ExampleModule(),
|
|
{% if include_system %} create_system_module(),
|
|
{% endif -%}
|
|
]
|
|
|
|
|
|
app = create_app(
|
|
config_mapping=config,
|
|
model_imports=[import_models],
|
|
modules=modules,
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run(debug=True)
|