Book description
Spurred by the enormous popularity of Ruby on Rails, web frameworks have revolutionized the way developers of all programming languages tackle the often complex task of web application development. Some of the most exciting activity in this area can be seen in the Python community, one of the wildly popular frameworks to enter the fray being Pylons (http://www.PylonsHQ.com). Co-founder and lead developer James Gardner brings you a comprehensive introduction to Pylons, the web framework that uses the best of Ruby, Python, and Perl and the emerging WSGI standard to provide structure and flexibility. With expert guidance from the author, you'll learn how to create your own Pylons-driven web site using SQLAlchemy and FormEncode and attain the mastery of advanced Pylons features, such as internationalization and localization, packaging and deployment.
Table of contents
- Copyright
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Source Code and Updates
-
1. Getting Started
- 1. Introducing Pylons
- 2. Installing Pylons
-
3. Exploring Pylons
- 3.1. Exploring Pylons' Dependencies
- 3.2. Creating a Pylons Project
- 3.3. Serving a Pylons Application
- 3.4. Exploring a Pylons Project's Directory Structure
- 3.5. Creating a Controller and Modifying the Routes
- 3.6. Understanding How HTTP Works
- 3.7. Exploring the Environment
- 3.8. Understanding the Pylons Request and Response
- 3.9. Understanding Pylons Globals
- 3.10. Configuring Pylons
- 3.11. Controller Imports
- 3.12. Summary
- 4. Tracking Down and Handling Problems
- 5. Using View Templates
- 6. Working with Forms and Validators
- 7. Introducing the Model and SQLAlchemy
- 8. Starting the SimpleSite Tutorial
-
2. Advanced Pylons
- 9. URLs, Routing, and Dispatch
- 10. Unicode
- 11. Internationalization and Localization
- 12. Testing
- 13. Documentation
- 14. SimpleSite Tutorial Part 2
-
15. CSS, JavaScript, and Ajax
- 15.1. Adding YUI to Your Project
- 15.2. Resetting the Browser CSS
- 15.3. Fonts
- 15.4. Grids
- 15.5. Updating SimpleSite to Use CSS Grids
- 15.6. Introducing Firebug
- 15.7. Introducing JavaScript
- 15.8. JavaScript Essentials
- 15.9. The Document Object Model
- 15.10. The Event Model
- 15.11. Adding Animation to the SimpleSite Flash Message
- 15.12. Ajax
- 15.13. Reducing Page Load Time
- 15.14. Summary
-
3. Expert Pylons
- 16. The Web Server Gateway Interface (WSGI)
- 17. Pylons' Internal Architecture
-
18. Authentication and Authorization
- 18.1. Private Data
- 18.2. A Homegrown Solution
- 18.3. AuthKit
- 18.4. Authentication Middleware
- 18.5. Authorization and Permissions
- 18.6. Groups, Roles, and Permissions
- 18.7. User Management API
- 18.8. Cookie Options
- 18.9. Alternative Methods
- 18.10. Functional Testing
- 18.11. General Security Considerations
- 18.12. Summary
-
19. SimpleSite Tutorial Part 3
-
19.1. Authentication and Authorization
- 19.1.1. Setting Up the Middleware
- 19.1.2. Adjusting websetup.py
- 19.1.3. Protecting Controller Actions
- 19.1.4. Changing Templates Based on Permissions
- 19.1.5. Signing In and Signing Out
- 19.1.6. Styling the Sign-in Screen
- 19.1.7. Protecting the Rest of the Actions
- 19.1.8. Using the AuthKit User Management API
- 19.2. Error Documents
- 19.3. Adding a WYSIWYG Interface
- 19.4. Configuring the setup.py File
- 19.5. Packaging a Pylons Project for Distribution
- 19.6. Making SimpleSite into a Paste Project Template
- 19.7. Summary
-
19.1. Authentication and Authorization
- 20. Logging
-
21. Deployment
- 21.1. Choosing or Setting Up a Python Environment
- 21.2. Installing the Required Software into the Environment
- 21.3. Creating a Config File for the Application
- 21.4. Setting Up the Application Instance
- 21.5. Serving the Application from the Installed Environment
- 21.6. Deployment Options
- 21.7. Using Apache to Proxy Requests to Pylons
- 21.8. Embedding Pylons in Apache with mod_wsgi
- 21.9. Deployment on Windows
- 21.10. Summary
-
A. Licenses
-
A.1. GNU Free Documentation License
- A.1.1. 0. PREAMBLE
- A.1.2. 1. APPLICABILITY AND DEFINITIONS
- A.1.3. 2. VERBATIM COPYING
- A.1.4. 3. COPYING IN QUANTITY
- A.1.5. 4. MODIFICATIONS
- A.1.6. 5. COMBINING DOCUMENTS
- A.1.7. 6. COLLECTIONS OF DOCUMENTS
- A.1.8. 7. AGGREGATION WITH INDEPENDENT WORKS
- A.1.9. 8. TRANSLATION
- A.1.10. 9. TERMINATION
- A.1.11. 10. FUTURE REVISIONS OF THIS LICENSE
- A.1.12. ADDENDUM: How to use this License for your documents
- A.2. Pylons License
- A.3. YUI License
-
A.1. GNU Free Documentation License
Product information
- Title: The Definitive Guide to Pylons
- Author(s):
- Release date: December 2008
- Publisher(s): Apress
- ISBN: 9781590599341
You might also like
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …
article
Reinventing the Organization for GenAI and LLMs
Previous technology breakthroughs did not upend organizational structure, but generative AI and LLMs will. We now …
article
Use Github Copilot for Prompt Engineering
Using GitHub Copilot can feel like magic. The tool automatically fills out entire blocks of code--but …
book
Flask Blueprints
Dive into the world of the Flask microframework to develop an array of web applications About …