Pylons: Powerful Web Development - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Pylons: Powerful Web Development

Description:

'A web application framework is a software framework that ... link generation (js, css, image) tools.mail_to. Fin. Resources: http://pylonshq.com/docs/en/0.9.7 ... – PowerPoint PPT presentation

Number of Views:82
Avg rating:3.0/5.0
Slides: 17
Provided by: wina5
Category:

less

Transcript and Presenter's Notes

Title: Pylons: Powerful Web Development


1
Pylons Powerful Web Development
2
Abstractions
  • A web application framework is a software
    framework that is designed to support the
    development of dynamic websites, web
    applications, and web services. The framework
    aims to alleviate the overhead associated with
    common activities used in web development.

3
Why Pylons?
  • Interactive debugging
  • Paster shell
  • Easy URL Routing
  • No magic

4
Installing
  • easy_install pylons

5
Architecture
6
What were interested in
  • Model-View-Controller
  • Model Manages the behavior and data of the
    application domain
  • View Manages the presentation of the model
  • Controller Interprets requests, assembles data
    provided by model and performs data binding in
    support of the view

7
Paste
  • Provides a framework for creating WSGI middleware
  • Development web server
  • To create a new project, run
  • paster create t pylons mymarks

8
Directory structure
  • /data/templates
  • /mymarks/config
  • /mymarks/lib
  • /mymarks/public
  • /mymarks/tests
  • /mymarks/model, controllers, templates

9
Model - SqlAlchemy
  • Basic idea
  • Create tables
  • Create classes
  • Map classes to tables
  • Use high-level language to interact with model,
    instead of interacting with database with SQL

10
Controller
  • paster controller bookmarks

11
Routes
  • In config/routes.py

12
Request walkthrough
13
Interactive Debugger
  • Test_debug

14
Paster shell
  • IPython!
  • Useful for interacting with models in the context
    of your pylons app

15
WebHelpers Goodies
  • link generation (js, css, image)
  • tools.mail_to

16
Fin
  • Resources
  • http//pylonshq.com/docs/en/0.9.7/
  • http//www.sqlalchemy.org/docs/05/index.html
Write a Comment
User Comments (0)
About PowerShow.com