Re: InterfaceError: Connection already closed -- is this a regression?

2011-03-21 Thread onelson
I hear you, Russ. I'll see if I can't get something more repeatable down in code, but as I stated, it's an intermittent problem. Didn't meant to sound like your 3rd option wasn't an option ("issues with the code" is always an option). I just wanted to make sure this wasn't a "postgres thing" that I

InterfaceError: Connection already closed -- is this a regression?

2011-03-02 Thread onelson
I recently switched a project from mysql to postgres and started to see httpd throwing intermittent 500 errors. mod_wsgi (pid=26467): Exception occurred processing WSGI script '/ htdocs/django.wsgi'. Traceback (most recent call last): File "./lib/python2.6/site-packages/django/core/han

Model validation for non-django-orm databases

2010-08-29 Thread onelson
I've got an external (read-only) database that I'd like to hook into an app I'm working on -- it violates django's pk assumption by using composite keys. I'm hoping that, given a couple of assumptions of my own, I can hook these tables up to the ORM without having the universe implode. Since the d

conditional loading of template tags

2010-04-05 Thread onelson
So, I'm building an application that I'd like to be able to tie into django-tagging (if it's installed). Having an issue, probably best illustrated in code: http://dpaste.org/jaD8/ In my model, I have a tags property (obj.tags) which is None when 'tagging' is not in INSTALLED_APPS, otherwise it's