Re: JQuery .load() works in production but fails in development

2011-07-04 Thread Joe Linoff
Hi Andre: Thank you for responding and for your insights. > For the record, you can use request.is_ajax to figure out whether a > request is coming from a js file and make the view behave accordingly. > It's mighty useful in some cases. That is very useful. > Also, have you gone trough the offi

Re: JQuery .load() works in production but fails in development

2011-07-01 Thread Joe Linoff
Hi Folks: I figured it out. The idea is NOT to use CGI. It is not needed. Simply use a Django WSGI URL to access the python module (in a view) and everything it works fine. It as blindingly obvious once I figured it out. Here is what I did to get it to work: 1. Added a new URL called '/stat

Re: JQuery .load() works in production but fails in development

2011-06-30 Thread Joe Linoff
Hi Folks: I forgot to mention that FireBug tells me that development request has completed successfully (code 200) but there is no data which is what lead me to believe that it was a "same origin policy" problem possibly resulting from the use of the alternate port or from the fact that I just

Re: can i control select column order in a queryset?

2011-06-30 Thread Joe Linoff
Hi Karen: Thank you for your response. The reason that I care about about column order is so that I can use the same template for different queries with arbitrary column orders using a single variable. I would like to be able to extract the field key name and use them directly in the column hea

can i control select column order in a queryset?

2011-06-25 Thread Joe Linoff
Hi Folks: I am a newbie who is really enjoying Django. It is a great system and has really saved me a lot of time but I am having a problem trying to control the column order in a queryset. In SQL my queries would look something like this: -- column order #1 SELECT 'Third','Second'