How to create/modify the controller class generated by pylons?

妖精的绣舞 提交于 2019-12-11 13:24:05

问题


Say I wanted to add some imports to the file generated when I run:

paster controller controllern_name

Is this possible?


回答1:


I assume you want to modify the pylons templates -- in this case controller.py_tmpl. It's best to create your own set of templates based on the ones from pylons, and then use them when starting a new project.



来源:https://stackoverflow.com/questions/3699796/how-to-create-modify-the-controller-class-generated-by-pylons

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!