initial template for app based on wuttaweb
with e.g. `poser install` command
This commit is contained in:
commit
46b33a622f
18 changed files with 344 additions and 0 deletions
|
@ -0,0 +1,26 @@
|
|||
# -*- coding: utf-8; -*-
|
||||
"""
|
||||
{{cookiecutter.project_name}} Menu
|
||||
"""
|
||||
|
||||
from wuttaweb import menus as base
|
||||
|
||||
|
||||
class {{cookiecutter.__studly_prefix}}MenuHandler(base.MenuHandler):
|
||||
"""
|
||||
{{cookiecutter.project_name}} menu handler
|
||||
"""
|
||||
|
||||
def make_menus(self, request, **kwargs):
|
||||
|
||||
# TODO: override this if you need custom menus...
|
||||
|
||||
# menus = [
|
||||
# self.make_products_menu(request),
|
||||
# self.make_admin_menu(request),
|
||||
# ]
|
||||
|
||||
# ...but for now this uses default menus
|
||||
menus = super().make_menus(request, **kwargs)
|
||||
|
||||
return menus
|
Loading…
Add table
Add a link
Reference in a new issue