Archive for March, 2010

Re: Getting strange email from "dreamhost"

On Wed, Mar 31, 2010 at 11:13 PM, Wiiboy wrote: > Hi guys, > I’ve gotten two emails from “Mail Delivery Subsystem > ” with the subject “Your message was NOT …

Read the rest here: 
Re: Getting strange email from "dreamhost"

JOIN instead of multiple SELECT

Hello to all,. has been a while i’ve been wondering how to optimize Django’s queries to the database, for example by setting it to use JOIN to retrieve foreign keys instead of multiple selects. for example if I have a blog object that …

Read more from the original source: 
JOIN instead of multiple SELECT

How to display other field(not the foreign key) in admin dropdown list

I have a people table and a bridge table which are related. bridge table has a foreignkey field for people table. When I click add from django admin it shows the peopleid in a drop down list. What I want to do is I want to show the …

See the rest here:
How to display other field(not the foreign key) in admin dropdown list

Re: Is it possible to change the width of the boxes displayed by …

Walt,. Thanks for the clarification. That helped a lot. I did get this working. Yeah! Had to do a slight tweak to the surrounding elements on the page to get it to look right (minor change to widgets.css). …

More here: 
Re: Is it possible to change the width of the boxes displayed by …

Re: Passing hidden foreign key to form as initial value

Final approach: in the forms.py excluded the courses foreign key field in models.py made courses blank and nullable didn’t pass any initial values to the form in the view, saved the form like this: item = Courses.objects.get(pk=whatever …

Here is the original: 
Re: Passing hidden foreign key to form as initial value

Re: Probably a very basic data modeling question

Hi everyone,. I am still having issues with my data models. I can’t tell if the underlying problem is my model definitions or my inability to do the queries to manipulate my models to get the output that I want. …

Read the original:
Re: Probably a very basic data modeling question

"format" error with django-piston

Hi everyone,. I know there’s a Google Group for django-piston, but there’s not very much conversation on that group, so I’m re-posting here as well. I’m getting an error when running the “blogserver” example site included with Piston: …

Here is the original:
"format" error with django-piston

ksaver (ksaver) 's status on Monday, 29-Mar-10 16:32:41 UTC …

Python Tips , Tricks, and Hacks » http://www.siafoo.net/article/52 !Python !Programming. Attachments. http://www.siafoo.net/article/52 · about a day ago from web at Annapurna 1, Gandakī Zone, Nepal in context. Secondary site navigation …

Go here to read the rest: 
ksaver (ksaver) 's status on Monday, 29-Mar-10 16:32:41 UTC …

Django tips: Tech Model: Django Sum all values with a distinct …

Django tips : Tech Model. Sunday, March 28, 2010. Django Sum all values with a distinct ForeignKey ID & zip them with fields from related table. I would like to perform something similar to …

See original here: 
Django tips: Tech Model: Django Sum all values with a distinct …

Django tips: Tech Model: Possible improved WSGI script file for …

Django tips : Tech Model. Sunday, March 28, 2010. Possible improved WSGI script file for Django when using Apache/mod_wsgi. FWIW, have posted: http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html …

See the original post:
Django tips: Tech Model: Possible improved WSGI script file for …