fix: format all code with black
and from now on should not deviate from that...
This commit is contained in:
parent
81a6531d37
commit
34fe32af6b
4 changed files with 18 additions and 12 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
import rich
|
||||
|
||||
rich.print("\n\t[blue]Welcome to Wutta Framework[/blue]")
|
||||
|
|
|
@ -11,19 +11,22 @@ def main(global_config, **settings):
|
|||
Make and return the WSGI app (Paste entry point).
|
||||
"""
|
||||
# prefer {{cookiecutter.project_name}} templates over wuttaweb
|
||||
settings.setdefault('mako.directories', [
|
||||
'{{cookiecutter.package_name}}.web:templates',
|
||||
'wuttaweb:templates',
|
||||
])
|
||||
settings.setdefault(
|
||||
"mako.directories",
|
||||
[
|
||||
"{{cookiecutter.package_name}}.web:templates",
|
||||
"wuttaweb:templates",
|
||||
],
|
||||
)
|
||||
|
||||
# make config objects
|
||||
wutta_config = base.make_wutta_config(settings)
|
||||
pyramid_config = base.make_pyramid_config(settings)
|
||||
|
||||
# bring in the rest of {{cookiecutter.project_name}}
|
||||
pyramid_config.include('{{cookiecutter.package_name}}.web.static')
|
||||
pyramid_config.include('{{cookiecutter.package_name}}.web.subscribers')
|
||||
pyramid_config.include('{{cookiecutter.package_name}}.web.views')
|
||||
pyramid_config.include("{{cookiecutter.package_name}}.web.static")
|
||||
pyramid_config.include("{{cookiecutter.package_name}}.web.subscribers")
|
||||
pyramid_config.include("{{cookiecutter.package_name}}.web.views")
|
||||
|
||||
return pyramid_config.make_wsgi_app()
|
||||
|
||||
|
|
|
@ -18,5 +18,9 @@ Static assets
|
|||
|
||||
|
||||
def includeme(config):
|
||||
config.include('wuttaweb.static')
|
||||
config.add_static_view('{{cookiecutter.package_name}}', '{{cookiecutter.package_name}}.web:static', cache_max_age=3600)
|
||||
config.include("wuttaweb.static")
|
||||
config.add_static_view(
|
||||
"{{cookiecutter.package_name}}",
|
||||
"{{cookiecutter.package_name}}.web:static",
|
||||
cache_max_age=3600,
|
||||
)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
def includeme(config):
|
||||
|
||||
# core views for wuttaweb
|
||||
config.include('wuttaweb.views.essential')
|
||||
config.include("wuttaweb.views.essential")
|
||||
|
||||
# TODO: include your own views here
|
||||
#config.include('{{cookiecutter.package_name}}.web.views.widgets')
|
||||
# config.include('{{cookiecutter.package_name}}.web.views.widgets')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue