Odd error using Formwizard

2014-04-07 Thread Griffin Caprio
getting to the form, entering data, & submitting it, then the error occurs. I can't reproduce this reliably. After digging into the django source, looks like the get_form_list method regenerates the form_list every step. So could the condition return true before the form is display, then

Re: Django App - Accessing Remote MySQL Database

2013-10-03 Thread Liam Griffin
I have a MySQL server with hundreds of dbs... is there a way to be able to connect to all these without breaking DRY principles? On Friday, 2 August 2013 14:26:23 UTC+1, Christian Schmitt wrote: > > You could use django's inbuild ORM: > https://docs.djangoproject.com/en/dev/topics/db/multi-db/ >

Re: Django AJAX polling: Best practice?

2011-07-01 Thread Duane Griffin
On 30 June 2011 21:31, Shawn Milochik wrote: > This isn't a job for AJAX -- it's a job for Comet, which is tailor-made for > your exact needs. Yes. Have your clients subscribe to an update channel for the game (you will probably need separate channels for each user, unless all players have full i

Re: spawning threads within test cases in django test framework

2011-06-01 Thread Duane Griffin
On 31 May 2011 22:01, Brian wrote: > I've got a django app with a periodically scheduled background task that > updates the database. I've written a bunch of tests for its principal class > that are run as part of the django unit test framework. I want to convert > the class to do its work using m

Re: failing to pass model objects to template for some reason....

2011-05-21 Thread Duane Griffin
On 21 May 2011 05:51, Chris Seberino wrote: > I have a model class called Message with an attribute called text. > > ** When I pass a list of these objects called messages to my template, > it doesn't show up. > > ** When I instead create this derivative called fred, that *does* > work... >      

Re: Customize Admin Object elements

2007-10-27 Thread Griffin Caprio
Gustaf, Awesome thanks. - Griffin On Oct 27, 2007, at 2:15 PM, [EMAIL PROTECTED] wrote: > > class MyModel(models.Model): > ... > > class Meta: > ordering = ['name'] > > /Gustaf > > On Oct 27, 8:07 pm, Griffin <[EMAIL PROTECTED]> wr

Customize Admin Object elements

2007-10-27 Thread Griffin
ithin the model itself, but I can't find any option that allows me to customize how the fields are displayed. Is the only option a custom view? Thanks, Griffin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: Django Book

2007-09-09 Thread Griffin Caprio
Right, but the question wasn't really answered. That thread was from may and it talks about the book being published in June. I was wondering if the question raised in the thread ( the book being aligned w/ Django 1.0 ) was ever answered. Griffin On Sep 7, 2007, at 7:17 PM,

Django Book

2007-09-07 Thread Griffin Caprio
tive-Guide-Django-Development-Right/dp/1590597257/ ) and one of the authors is a developer for django. Is this the print incarnation of the site? Thanks, Griffin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

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

2007-09-02 Thread Griffin Caprio
You may need to edit the setup.cfg file to point to the correct location of your pg_config file. For example: /usr/local/pgsql/bin. - Griffin On Sep 2, 2007, at 6:14 PM, Brandon Taylor wrote: > > Hi Todd, > > Here is a copy of my terminal session: > > running insta

Join tables with extra data

2007-09-01 Thread Griffin Caprio
Hello all, I know that by defining a field using the ManyToManyField type will generate a M2M join table for my models. Is there a way to add extra data to that join table or do I have to model the join as a distinct entity? Thanks, Griffin