Re: Mod_python error: "PythonHandler django.core.handlers.modpython"

2005-09-21 Thread moberley
Jakub, Thank you for the suggestion. I was able to have the server I'm using with Django switched to Apache2 and that did in fact solve the problem I was having with mod_python. Thanks, Bradley Peters.

Re: setting default value for foreign key?

2005-09-21 Thread Timothy Wright
This is what I have done in these situations (I don't know if it is proper or even good but did seem to work): Implement _post_save on the Asset something like so ... def _post_save(self): # do needed imports try: self.get_assetstate() catch assetstates.AssetStateDoesNotExist

Re: selecting specific fields

2005-09-21 Thread Kenneth Gonsalves
On Wednesday 21 Sep 2005 7:31 pm, Jacob Kaplan-Moss wrote: > > Also i find that i have to put the full > > table name as it appears in the database in order to get it to work > > with get_list > > Well, you're writing raw SQL here, so that's about the size of it, > yes. not specified in the tutor

Re: setting default value for foreign key?

2005-09-21 Thread Rachel Willmer
No, sorry, that was an error I introduced when I was composing the email... here's the real code... class AssetState(meta.Model): state=meta.CharField(maxlength=128) def __repr__(self): return self.state class META: admin=meta.Admin() ordering = ['id'] class

Re: Packaging django apps

2005-09-21 Thread nichyoung
To clarify the problems installing eggs to non-default locations: On having to use eggs again I've discovered that this can be a problem in that you only packages installed in "site" directories (such as site-packages) can be autoloaded. Prior to version 0.6a1 ez_install did not recognize that m

Re: setting default value for foreign key?

2005-09-21 Thread Adrian Holovaty
On 9/21/05, Rachel Willmer <[EMAIL PROTECTED]> wrote: > class State(meta.Model): > state=meta.CharField(maxlength=128) > def __repr__(self): > return self.state > > class Asset(meta.Model): > definition=meta.ForeignKey(AssetDefinition) > state=meta.F

setting default value for foreign key?

2005-09-21 Thread Rachel Willmer
I have two classes: class State(meta.Model): state=meta.CharField(maxlength=128) def __repr__(self): return self.state class Asset(meta.Model): definition=meta.ForeignKey(AssetDefinition) state=meta.ForeignKey(AssetState,null=True,blank=True)

Re: Design Advice: "here" in Navigation

2005-09-21 Thread [EMAIL PROTECTED]
And the only way I can see to put it there, for non-custom views, is using middleware, correct? Thanks, A.

Re: Does anyboby know about this ??

2005-09-21 Thread asrenzo
Ooops, I just found a link in the http://code.djangoproject.com/ website. Sorry,

Re: selecting specific fields

2005-09-21 Thread Jacob Kaplan-Moss
On Sep 21, 2005, at 4:56 AM, Kenneth Gonsalves wrote: doesnt work with 'get_values'. Ah, so it doesn't -- that's a bug, which I've filed and hopefully will be fixed shortly: http://code.djangoproject.com/ticket/532 Also i find that i have to put the full table name as it appears in the

Does anyboby know about this ??

2005-09-21 Thread asrenzo
http://opensvn.csie.org/django_ajax/trunk/

Re: selecting specific fields

2005-09-21 Thread Kenneth Gonsalves
On Wednesday 21 Sep 2005 11:24 am, Jacob Kaplan-Moss wrote: > On Sep 21, 2005, at 12:36 AM, Kenneth Gonsalves wrote: > > thanks, that worked, now a new problem arises. how do i do a > > subselect to get the 'name' value of a foreign key field using > > get_values? > > http://www.djangoproject.com/