Re: Django 1.2 Dropped Sessions when single view contains registration and login authentication

2011-04-26 Thread Ray Cote
- Original Message - > From: "benp" > To: "Django users" > Sent: Monday, April 25, 2011 8:54:15 AM > Subject: Django 1.2 Dropped Sessions when single view contains registration > and login authentication > I've seen other Django

Re: Proper approach to updating model object with 100 attributes.

2010-06-30 Thread Ray Cote
Thanks for everybody's comments. I ended up using the setattr method and, since I always know the data I have is a subset of the data in the model, that works wonderfully. --Ray - Original Message - From: "euan.godd...@googlemail.com" To: "Django users"

Re: Proper approach to updating model object with 100 attributes.

2010-06-29 Thread Ray Cote
Hi Tim: Thanks for the pointers. I think the setattr is probably safest way to deal with the Django models. --Ray - Original Message - From: "Tim Chase" <django.us...@tim.thechases.com> To: django-users@googlegroups.com Cc: "Ray Cote" <rgac...@appropriat

Proper approach to updating model object with 100 attributes.

2010-06-29 Thread Ray Cote
. When I create a new item, I'm able to do this: obj = MyModel(**dictionary_of_field_values) Is there something similar I can do with my obj once the data is retrieved? Thanks --Ray -- Ray Cote, President Appropriate Solutions, Inc. We Build Software 603.924.6079 -- You received this message

Re: Hosting for Django sites

2010-04-03 Thread Ray Cote
ost to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- Ray Cote, President Appropriate Solutions, Inc. We Bui

Re: WebFaction memories

2008-05-29 Thread Ray Cote
At 12:38 PM -0400 5/29/08, didier rano wrote: >Hi all, > >I am trying to evaluate to migrate from Site5 hosting to WebFaction. >I have some problems with Site5 to compile some third-parties tools >like scipy (subversion) and dependances. > >But I don't have ideas about memories size with

Re: Getting file selected for upload to survive validation.

2008-03-04 Thread Ray Cote
At 1:31 AM +1100 3/5/08, Malcolm Tredinnick wrote: >On Tue, 2008-03-04 at 08:58 -0500, Ray Cote wrote: >> I have file uploads working using newforms. >> >> However, if I run into validation errors on the form (say a mandatory >> field is not filled), then when the fo

Getting file selected for upload to survive validation.

2008-03-04 Thread Ray Cote
I have file uploads working using newforms. However, if I run into validation errors on the form (say a mandatory field is not filled), then when the form re-displays for the user, the file they previously selected is no longer selected. I've been reading through a variety of file upload

Re: Integrating Django with existing site.

2007-09-06 Thread Ray Cote
At 4:22 PM + 9/5/07, Steve Potter wrote: > > >> Try coding each module as a Django template tag. >> Then, create a template that returns an html fragment rather than a >> full html page. >> Associate each rendered template with a specific URL. >> Perhaps something like: >>

Re: Integrating Django with existing site.

2007-09-05 Thread Ray Cote
At 4:59 AM + 9/5/07, Steve Potter wrote: >... you have many different modules, each of them being a separate >application that >functions independently of the others, but they are all displayed on >one page. >I want to be able to convert these modules one by one without having >to replace

Newforms: adding a date picker

2007-04-14 Thread Ray Cote
Hello: I'm trying to figure out the approved Django way to add a Javascript date picker (pop-up calendar) to a field while using newforms. One way I see people adding date pickers is to give the field a specific class which the Javascript then attaches to during onload of the page. However,