select_related() and reverse foreign keys -OR- how to I get a blog post and its comments?

2009-02-23 Thread sphogan
I'm surprised that this hadn't come up for me before, but nonetheless, here I am. My problem is that I want to get related items (in a similar situation to getting blog articles with their comments) without looping a second lookup (since it would be a couple thousand items and building a page off

Re: Django Automatic Page Refreshing

2007-03-11 Thread sphogan
There are two ways of doing this: 1) You can use a meta refresh so that every, say, 30 seconds, the page reloads itself. 2) You can use Ajax to lookup if someone has registered every 30 seconds and then update the display based on the new data (or not if there is no new data). Unfortunately, th

Sandbox/Staging/Production Environments with Django (imports work how?)

2007-03-19 Thread sphogan
Hi! I've started to use Django and it's wonderful. I'm about ready to launch my first production site (around 4,000 visitors daily) and I found that I was unable to setup the sandbox/staging/production setup I'm used to having. Basically, the problem is that files will have imports in them that

Re: Sandbox/Staging/Production Environments with Django (imports work how?)

2007-03-19 Thread sphogan
and then the project_name is the same for each project and so the imports are the same. Thanks for clearing that up for me! Sean. On Mar 19, 8:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2007-03-19 at 23:54 +, sphogan wrote: > > Hi! I've started to