Skip to content Skip to sidebar Skip to footer

How To Create/modify The Controller Class Generated By Pylons?

Say I wanted to add some imports to the file generated when I run: paster controller controllern_name Is this possible?

Solution 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.


Post a Comment for "How To Create/modify The Controller Class Generated By Pylons?"