mike watkins dot ca : Entries tagged with “Tutorial”

Entries tagged with “Tutorial”

January 22 2009

Resty applications in QP, Part III

In order to complete the Songs application we should understand how QP's default traversal mechanism makes it easy to provide a navigable UI for our objects we want to expose to the web. (851 words) More …

January 21 2009

QP and WSGI

Exposing the QP application as a WSGI app is simple. Create a driver file (let's name it runwsgi.py) and place it in your Python path. Myself I prefer to put such files in my QP application's "site" directory. (351 words) More …

Resty applications in QP, Part II

Inside (1184 words) More …

January 18 2009

Resty applications in QP

Eric Florenzano's deliberately minimalist WSGI application illustrating a bare metal WSGI application with RESTful behaviour has drawn out from other Python web application framework communities a number of useful comparisons: (1393 words) More …

November 29 2008

Python 2 and 3: Metaclasses

Inside (1120 words) More …

June 20 2007

Python Web Application Diary, Part Seven

In part six of Python Web Application Diary we looked at data persistence using Durus and wrote Sancho unit tests and a skeleton Pyblosxom migration tool. Today we'll extend the basic UI created in part five for our Entry object, and we'll create a base UI for the Journal object too. At that point we'll be able to wire our new JournalDirectory into SiteDirectory (also referenced in part five) - a QP application's "master controller" - which will allow us to start publishing previously created journal entries to the web. (1033 words) More …

June 08 2007

Python Web Application Diary, Part Six

In this installment of our web application diary we'll work more with the Durus object database by injecting some data into it; exploring the interactive interpreter (one of the cool features of Durus to be sure) and starting the basis for a conversion script to take weblog data in PyBlosxom format and insert it into our blog application database. (2447 words) More …

June 06 2007

Python Web Application Diary, Part Five

In part two we created file system hierarchies for both a library and our project application. Since we plan on reusing our journal objects and related UI, those components will live in our library and our application itself will import them. (1856 words) More …

June 04 2007

Python Web Application Diary, Part Four

Our object model so far is very simplistic; lets add a healthy dose of constraints to aid both in testing and also prevent unintended (mis)use down the road. (1182 words) More …

Python Web Application Diary, Part Three

Today lets start writing code -- we'll begin by defining basic objects for managing weblog or journal entries, and then we'll move on to showing how QP and Durus make defining and publishing your Python objects as easy as, well, py. (904 words) More …

June 02 2007

Python Web Application Diary, Part Two

I presented in part one some of the choices I've made for my own system configuration as it pertains to file layouts and hierarchies. (440 words) More …

QP application generator

The script lives at: http://mikewatkins.ca/software/files/qp/mkqpapp.py (94 words) More …

May 31 2007

Python Web Application Diary

I have a number of tutorial projects in various stages of completion, and I'm itching to put some of this stuff out there in the hope that its useful to someone. (1382 words) More …