2024-11-26 11:16:09 -06:00
|
|
|
# -*- coding: utf-8; -*-
|
|
|
|
"""
|
|
|
|
{{cookiecutter.project_name}} config extensions
|
|
|
|
"""
|
|
|
|
|
|
|
|
from wuttjamaican.conf import WuttaConfigExtension
|
|
|
|
|
|
|
|
|
|
|
|
class {{cookiecutter.__studly_prefix}}Config(WuttaConfigExtension):
|
|
|
|
"""
|
|
|
|
Config extension for {{cookiecutter.project_name}}
|
|
|
|
"""
|
|
|
|
key = '{{cookiecutter.package_name}}'
|
|
|
|
|
|
|
|
def configure(self, config):
|
|
|
|
|
|
|
|
# app info
|
|
|
|
config.setdefault(f'{config.appname}.app_title', "{{cookiecutter.project_name.replace('"', '\\"')}}")
|
|
|
|
config.setdefault(f'{config.appname}.app_dist', "{{cookiecutter.distribution_name}}")
|
|
|
|
|
|
|
|
# app model
|
|
|
|
config.setdefault(f'{config.appname}.model_spec', '{{cookiecutter.package_name}}.db.model')
|
|
|
|
|
|
|
|
# web app menu
|
|
|
|
config.setdefault(f'{config.appname}.web.menus.handler_spec',
|
|
|
|
'{{cookiecutter.package_name}}.web.menus:{{cookiecutter.__studly_prefix}}MenuHandler')
|
|
|
|
|
|
|
|
# web app libcache
|
2024-12-10 17:04:17 -06:00
|
|
|
#config.setdefault('wuttaweb.static_libcache.module', '{{cookiecutter.package_name}}.web.static')
|