Re: database query help

2006-05-03 Thread Dave St.Germain
oops.  My mistake.  I should've looked up the db-api docs before replying...On 5/3/06, Adrian Holovaty <[EMAIL PROTECTED] > wrote:On 5/3/06, tsnyder <[EMAIL PROTECTED] > wrote:> I think I have missed something in the documentation, and I am hoping someone> can help me.  What is the django equivalen

Re: database query help

2006-05-03 Thread Dave St.Germain
I think this is what you're looking for:Event.objects.filter(semester__id=1,category__id=2)(note the two underscores)On 5/3/06, tsnyder < [EMAIL PROTECTED]> wrote:Hi all,I think I have missed something in the documentation, and I am hoping someone can help me.  What is the django equivalent of doin

Re: Different versions of Django - apache virtual hosts

2006-04-28 Thread Dave St.Germain
You may have to set the PythonInterpreter argument:PythonInterpreter "uniquename"for each vhostOn 4/28/06, tomass < [EMAIL PROTECTED]> wrote:Hi Folks,Just wondering how I configure an apache virtual host to use a different version of Django. I've installed the magic-removal branchand have added the

Re: fastcgi question

2006-04-21 Thread Dave St.Germain
You can configure FastCGI to start up a set number of processes when apache starts and keep them running.  Something like this in your httpd.conf should suffice:FastCgiConfig -idle-timeout 90 -restart -minProcesses 5 FastCgiServer /path/to/django.fcgi -processes 5On 4/21/06, tsnyder <[EMAIL PROTECT

Re: problem with threaded apache

2006-04-21 Thread Dave St.Germain
I've been running django (trunk and M-R) on apache prefork with no problems.  I recently switched to the worker MPM, and so far, everything seems to work fine (with better memory usage, I might add).  I did have a problem on a separate installation, however, related to memcache.  I think there may

Re: Ecommerce & Django

2006-04-13 Thread Dave St.Germain
For what it's worth, I've written a python module that works with Authorize.net that I could contribute (after properly opensource-itizing...).On 4/13/06, arthur debert <[EMAIL PROTECTED]> wrote: "Setup a free python project on python-hosting.com"+1 on this one. when getting started we better focu

ManyToMany with related_name?

2006-04-12 Thread Dave St.Germain
I'm trying to create a model that relates back to itself with a ManyToManyField.  Here's my model:class PressRun(models.Model):    starttime = models.DateTimeField(db_index=True)    endtime = models.DateTimeField (validator_list=[endAfterStartValidator])    name = models.CharField(maxlength=100,bla

Re: where is the meta?

2006-04-12 Thread Dave St.Germain
models.TABULAR should workOn 4/12/06, yi huang <[EMAIL PROTECTED]> wrote: today i update the django magic-removal svn,and install new versioni read new db-api.html , and see models.ForeignKey(Poll, edit_inline=meta.TABULAR but where to import meta module.and the old code "models.TABULAR" is wr

Re: Is select_related broken in magic removal?

2006-04-11 Thread Dave St.Germain
g an empty list when I queried for them. I should've known it was MY dumb mistake rather than Django's!DaveOn 4/10/06, Adrian Holovaty <[EMAIL PROTECTED] > wrote:On 4/10/06, Dave St.Germain < [EMAIL PROTECTED]> wrote:> ...Or am I doing something wrong?> In django-trunk,

Is select_related broken in magic removal?

2006-04-10 Thread Dave St.Germain
...Or am I doing something wrong?In django-trunk, select_related seems to work, but in magic-removal, I get an empty list.  It looks like the QuerySet isn't generating the joins for related objects correctly.  I'm still digging into this one, but is this a known issue? --~--~-~--~~---