Re: Custom Middleware TypeError exception

2008-12-05 Thread Rajesh Dhawan
On Dec 5, 11:20 am, Chris Smith <[EMAIL PROTECTED]> wrote: > 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

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... Cheers, Chris. --~--~-

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