Re: Custom Middleware TypeError exception

2008-12-05 Thread Chris Smith
On Dec 5, 4:20 pm, Chris Smith <[EMAIL PROTECTED]> wrote: > Any ideas?  Is it something silly I've done? Actually, please ignore this. The exception was firing in user code due to me forgetting to handle a capture group in a URL regex. Back to the coffee machine...

Custom Middleware TypeError exception

2008-12-05 Thread Chris Smith
Found an oddity - possibly in my code. Can't seem to work around it. Code in question (current multi-tenant middleware implementation): middleware.py .. from projectname.models import Tenant, HostEntry from django.http import HttpResponseNotFound from django.core.exceptions

Django abstract base class and table structure

2008-11-27 Thread Chris Smith
he structure: create table party ( party_id bigserial, type char(1), -- p = party ... o = organisation first_name character varying(50), last_name character varying(50), name character varying(50), ... ) Is there something I am missing here? Many Thanks, Chris Smith [1] htt

Django authentication, virtual hosts, sites and SaaS

2008-02-18 Thread Chris Smith
I'm looking for a solution (preferably off the shelf) which will allow several things to be done at once. I've built a couple of trivial Django sites so I have a little experience, but a lot with Python. I'm building a *big* high traffic SaaS (sorry for the buzzword) type application to replace