Category Archives: Pylons

Python Web Framework Series – Pylons Part 7: Refactoring, Deployment And Wrap-Up

Lets take a look at our existing site and what we can do to clean it up and add some badly needed functionality, however that is beyond the scope of my series. So I’m going to leave some hints for … Continue reading 

Also posted in Authkit, Python | 6 Comments

Python Web Framework Series – Pylons: Part 6 Basic Authorization With AuthKit

Last post we left off with very basic database access, and testing story completed. Now we’re going to look at basic Authorization and Authentication with AuthKit. NOTE: most of this post is just an aggregation of a couple of chapters … Continue reading 

Also posted in Authkit, Python | 1 Comment

Python Web Framework Series – Pylons: Part 5 Testing Models

UPDATE: was an error caught by Govind (who is turning out to be my unofficial proofreader). I’ve made a correction in the thread mapping for “dateadded” property in the previous article. If this you are caught up with and error … Continue reading 

Also posted in Python, SqlAlchemy | 3 Comments

Python Web Framework Series – Pylons: Part 4 Introduction For Database Support With SQL Alchemy.

We last left off with Views with Mako, now Pylons does not enforce on you an ORM at all, so you can use hand crafted SQL if you prefer. However, since I’ve done enough of that for a career or … Continue reading 

Also posted in ORM, Python | 2 Comments

Python Web Framework Series – Pylons: Part 3 Views with Mako

This is a huge post and I should have split this into several smaller ones so please bear with me while I get my series format tweaked.  We last left off with Controllers, Views and Testing with a basic test, … Continue reading 

Also posted in Mako, Python | 6 Comments

Python Web Framework Series – Pylons: Part 2 Controllers, Views and Testing

We last left off with Getting Started and having created our “pylonsforum” project and generated our first controller. Source for home.py import logging  from pylons import request, response, session, tmpl_context as c  from pylons.controllers.util import abort, redirect_to  from pylonsforum.lib.base import BaseController, render  log = logging.getLogger(__name__)  class HomeController(BaseController):      def index(self):          # Return a rendered template          #return render(‘/home.mako’)          # or, return a response          return ‘Hello World Source for test_home.py   from pylonsforum.tests import *  class TestHomeController(TestController):      def test_index(self):          response = self.app.get(url(controller=‘home’, action=‘index’))  … Continue reading 

Also posted in Python | 3 Comments

Python Web Framework Series – Pylons: Part 1 Getting Started

This article assumes you have Python 2.6 and Setuptools already installed on your machine and that you’re install SQL Alchemy 0.54 and Pylons 0.97 Overview Pylons is a component based MVC web framework. It, like a lot of more recent … Continue reading 

Also posted in Python | 7 Comments