Pylons Tips
All scripts created by paster(paster create, paster controller and etc.) uses 4 spaces as indent while many editors(vim) uses tabs automatically. Different indent in one file will cause fatal error.
h.url_for is a popular helper function in many books and tutorials which to solve url mapping. This tool is no longer available by default since 0.97. If you got error message like “AttributeError: ‘module’ object has no attribute ‘url_for’”, just add
[codesyntax lang="python"]from routes import url_for[/codesyntax]
to yourapp/libs/helper.py .
Similar Posts:
- New features in JTS 1.11
- Suppressing simple-xml’s class attribute
- Happy new year with Yan 0.4
- Nginx HTTP Push
- DB dump with chroot
This content is published under the Attribution-Noncommercial-Share Alike 3.0 Unported license.







on
on