spiffworkflow-backend/wsgi.py

16 lines
510 B
Python
Raw Permalink Normal View History

2022-06-08 16:14:39 +00:00
"""This is my docstring."""
import os
from spiffworkflow_backend import create_app
2022-10-12 17:26:04 +00:00
from spiffworkflow_backend.services.acceptance_test_fixtures import (
load_acceptance_test_fixtures,
)
app = create_app()
# this is in here because when we put it in the create_app function,
# it also loaded when we were running migrations, which resulted in a chicken/egg thing.
if os.environ.get("SPIFFWORKFLOW_BACKEND_LOAD_FIXTURE_DATA") == "true":
with app.app_context():
2022-10-12 17:26:04 +00:00
load_acceptance_test_fixtures()