Ignore:
Timestamp:
Apr 10, 2020, 7:50:13 PM (7 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
a2b8052
Parents:
ae2ff15
Message:

To find the template files, when started per installed package and per module from src-gen

  • Folder for templates is now set (in the descending priority)
    • per Config option TEMPLATE_FOLDER
    • per template_folder optional argument to setup_app(). The option is set by main.py (see mustache)

For tests the template_folder is set by init.py from test folder (s. inittest.mustache)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mapservice/codegen/templates/__init__test.mustache

    rae2ff15 r5c9c247  
    2828
    2929                application.config.from_object('{{packageName}}.server_impl.Config.TestingConfig')
     30                application.template_folder = os.path.join(os.path.dirname(__file__), '../templates')
    3031                celery = Celery(__name__, broker=application.config['CELERY_BROKER_URL'])
    3132                celery.config_from_object(application.config)
Note: See TracChangeset for help on using the changeset viewer.