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,
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
, 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
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
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
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
> 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
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
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
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
:)
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.*
11 matches
Mail list logo