Re: Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-03 Thread jfagnani
I used to install and compile all my components by hand, but I recently switched to using MacPorts, and I highly recommend it. I installed everything: Apache 2, MySQL, Python 2.5, mod_python, py- mysql from macports and it just works together. Macports has a psycopg2 package. On Sep 2, 4:04 pm,

Re: auth.view.login acting very weird

2007-09-02 Thread jfagnani
On Aug 31, 3:47 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 8/31/07, jfagnani <[EMAIL PROTECTED]> wrote: > > > I can't figure out what's going on, the form obviously works in some > > circumstances, and the log-in data is also correct. > > You'r

Re: auth.view.login acting very weird

2007-08-31 Thread jfagnani
, or you would need to write a custom view (I am a > little bid concerned about the post_data as it seems to be some random > string for security). > > Florian > > On Aug 31, 9:23 pm, jfagnani <[EMAIL PROTECTED]> wrote: > > > I'm trying to add a login widget to a sit

Re: How do I know if fastcgi is installed correctly? (using dreamhost)

2007-07-25 Thread jfagnani
I'm having the same exact problem. Please keep us posted if you get anywhere. So far I've tried just about every variation I could think of based on Jeff Croft's tutorial, the Django page in the Dreamhost wiki, and the Django docs on FastCGI. I can't even get the FastCGI hello world example to

Re: Which ajax framework django will support in the upcoming 1.0, prototype/dojo/jquery?

2007-04-10 Thread jfagnani
On Apr 10, 11:39 am, "Todd O'Bryan" <[EMAIL PROTECTED]> wrote: > On Tue, 2007-04-10 at 18:11 +, Steve Bergman wrote: > > But Django definitely has a preferred ORM and a preferred templating > > engine. Why be so set on complete agnosticism when it comes to > > javascript? > > I agree. I

Re: Reversed edit_inline?

2007-03-12 Thread jfagnani
On Mar 11, 8:43 pm, "chasfs" <[EMAIL PROTECTED]> wrote: > ORM has been contentious for many years - for more background on the > problems of > ORM, check out Ted Neward's blog entry > -http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Computer+Science... > > Peace, > -chasfs That for the

Re: Reversed edit_inline?

2007-03-11 Thread jfagnani
> I could add two foreignkey fields to Address referencing Person and > Company respectively and allow both to be null. Or I could just remove > the Address class and move all address fields into both Person and > Company instead. But both these solutions are IMO uglier. I'm in the exact same

Re: How to do dynamic lookup of variables.

2007-02-15 Thread jfagnani
On Feb 14, 4:41 pm, Mike Lake <[EMAIL PROTECTED]> wrote: > There are references to 'dynamic lookup' of variables in the docs for > template authors. > But this seems very complex to use custom tags and filters. A custom lookup filter is quite easy to do, because the template module already has

Re: Customizing the class returned by newforms.form_for_model()

2007-01-15 Thread jfagnani
So subclassing the generated form class does work, just type something like: class MyForm(forms.form_for_model(MyModel)): my_field = forms.CharField() ... (Python is very interesting :) But there's a not-so-small catch: new fields defined in the subclass don't get added to the fields

Re: Customizing the class returned by newforms.form_for_model()

2007-01-15 Thread jfagnani
I'm just starting to learn newforms myself, but it looks like form_for_model returns a class, so shouldn't you be able to subclass it? I'm not sure how that would work though, since the class doesn't exist when defining your subclass, but that's because I'm new to Python too :)

Re: Problem with custom forms and related objects

2007-01-02 Thread jfagnani
JMCameron wrote: Somehow, the AddManipulator does a bit of magic to make {% for the_chair in form.chair %} work in the template. When it works, as far as I can tell, in first pass, the_chair has a dictionary of all the chair.0.* objects, second pass has a dictionary of all the chair.1.*