Revision 1 as of 2009-07-06 21:54:15
|Deletions are marked like this.||Additions are marked like this.|
|Line 15:||Line 15:|
|*You can find more information here: http://turbogears.org/2.0/docs/main/TGControllers.html|
- If you know it will take a lot of code you can start working in a seperate file outside of root.py. We will create IT page. :
cd myapp/controllers/ cp controller.tempalate it.py
- Edit it.py and see what is in it.
- Now Edit root.py and add the following inside your Base controller.
from myapp.controllers.it import SampleController it = SampleController()
- Now you can access localhost:8080/it which is pulling code from it.py
You can find more information here: http://turbogears.org/2.0/docs/main/TGControllers.html