Pylons

install steps (using virtual environment)

  • download http://pylonsbook.com/virtualenv.py
  • C:\>C:\Python25\python.exe "C:\virtualenv-1.1\virtualenv.py" C:\env
  • C:\env\Scripts\easy_install.exe PasteDeploy
  • C:\env\Scripts>easy_install.exe Pylons

useful cmd

  • paster create —template=pylons prject_name
  • paster serve —reload development.ini

study topic

  1. SQLAlchemy
    • build model
    • make table from paster
    • add DB row in controller
    • get DB row in controller with conditions
  2. Route
    • control URL action mapping
  3. Mako
    • make a template and try c.title, c.content
    • try Webhelper module (those functions start with h.xxx)

online document

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License