RE: using mod_python to host several django apps on the same vhost?

2008-02-11 Thread charles.wesley
I looked at the sample code there, and it tells me how to run two Django applications under the same vhost--but I still have the problem of needing to deal with the /x/ in http://foo.bar.com/x/admin/. Is there a way to use mod_python (or something else) to proxy requests for http://foo.bar.com/x

using mod_python to host several django apps on the same vhost?

2008-02-08 Thread charles.wesley
Hi, I'd like to host several django applications at http://foo.bar.com/x, http://foo.bar.com/y, etc. Currently I'm managing them all in the same vhost, using Apache locations to direct each URL to a different Django project. However, this technique requires me to rewrite my urls.py to accept ^x

RE: sorting by another table

2008-02-07 Thread charles.wesley
Thanks for the tip--APN.zip was a ForeignKey with null=True. The SQL queries helped me verify. Appreciate it! -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of Rajesh Dhawan Sent: Wednesday, February 06, 2008 1:56 PM To: Django users Subject: Re:

sorting by another table

2008-02-06 Thread charles.wesley
I have a Sale model that foreign keys into an APN model, which foreign keys into a Zip model. I'd like to sort my Sale objects by the 'zip' field on the Zip model, but Sale.objects.select_related().order_by('sales_zip.zip') doesn't work (1054, "Unknown column 'sales_zip.zip' in 'order