Re: Emergency: Critical form error on medium-volume site

2010-09-20 Thread intrepidweb
> > Are you sure you don't get a thread safety issue ? > Do you have your own template tags for those forms ? > > Regards, > Xavier. > > Le 20 sept. 2010 à 18:42, intrepidweb a écrit : > > > > > Hi all, > > > Last week I ported a site that

Emergency: Critical form error on medium-volume site

2010-09-20 Thread intrepidweb
Hi all, Last week I ported a site that gets 50k+ pageviews/day from a PHP/ mySQL stack to Django/Postgresql. It has gone mostly smoothly, all things considered. However, I have encountered a VERY troubling bug involving the forms module, and I can't figure it out. The form in question allows user

GIS/OpenLayers point field widget problem

2010-02-17 Thread intrepidweb
Hi there, I am having a problem using the OpenLayers mapping widget for a GIS point field. I have a model called Locality that has a point field called "coordinates." I set the value of that field using the following format: POINT(LAT, LNG). For example, for Atlanta, GA, the value of the coordi

Problem with map widget on admin change page (GIS / OpenLayers)

2009-07-16 Thread intrepidweb
Hi there, I have a model called Locality that has a coordinates field. When I view the admin change form for the model, the mapping widget appears, but the actual map is grayed out. For example, for Atlanta, GA, the coordinates are 33.69132, -84.40137. When the OpenLayers map widget is rendered

Problem with map widget on admin change page (GIS / OpenLayers)

2009-05-14 Thread intrepidweb
Hi there, I have a model called Locality that has a coordinates field. When I view the admin change form for the model, the mapping widget appears, but the actual map is grayed out. For example, for Atlanta, GA, the coordinates are 33.69132, -84.40137. When the OpenLayers map widget is rendered

Chaining custom filter methods

2008-09-17 Thread intrepidweb
Hi there, I would like to chain a few custom filter methods like so: >>> Model.custom_manager.custom_filter1().custom_filter2() The docs tell us how to override a Manager's base QuerySet by overriding the Manager.get_query_set() method: * http://docs.djangoproject.com/en/dev/topics/db/manager

Chaining custom filter methods

2008-09-17 Thread intrepidweb
Hi there, I would like to chain a few different custom filter methods like so: Model.custom_manager.custom_filter1().custom_filter2() The docs tell us how to override a Manager's base QuerySet by overriding the Manager.get_query_set() method: http://docs.djangoproject.com/en/dev/topics/db/mana

Re: Custom middleware: using process_view to modify the view_func

2008-09-17 Thread intrepidweb
FYI, I answered my own question. It's pretty simple, actually. If you want process_view() to override the view_func() that was passed in, simply return new_view_func(). Similarly, if you want to override the view_args, just return view_func(view_args). Duh. On Sep 16, 1:37 pm, intrep

Custom middleware: using process_view to modify the view_func

2008-09-16 Thread intrepidweb
Hi there, I'm working on a custom middleware class for the first time. My goal is to write a process_view function that modifies the view_func and/or view_args that were passed in. The documentation states that process_view can either return None or an HttpResponse. But is there a way to modify