Re: Understanding FKs vs JOIN

2006-07-08 Thread bradford
Thanks, Malcolm -- as always :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

Re: Understanding FKs vs JOIN

2006-07-08 Thread Malcolm Tredinnick
On Sat, 2006-07-08 at 21:22 -0700, bradford wrote: > I have a Model Foo, with a FK to user. > > if i do f = Foo.objects.get(id=1) and all i need from that is f.title > and j.user.username in my template... is it returning more info than > needed with User. I mean, is it getting the entire user

Understanding FKs vs JOIN

2006-07-08 Thread bradford
I have a Model Foo, with a FK to user. if i do f = Foo.objects.get(id=1) and all i need from that is f.title and j.user.username in my template... is it returning more info than needed with User. I mean, is it getting the entire user object for each returned record? If it is returning the

Re: Cannot use the save() correctly

2006-07-08 Thread Malcolm Tredinnick
On Sat, 2006-07-08 at 17:49 +, william wrote: > I've been trough the save() as documented here: > http://code.djangoproject.com/wiki/RemovingTheMagic#Overridingsaveanddeletemodelmethods > > But, this does not work for fields having a ManyToMany relation. > If you take the example with

Re: Archlinux now running django!

2006-07-08 Thread Sandro
woah woah woah fellas, hold your horses! I'm just the messenger, I did not code their site, and from the looks of it, their coder wasn't their designer "is sporting the new design posted by rezza on the forums." I'm just super excited to see that my favorite linux distro recoded their site using

Re: Deploying and set up on shared hosting?

2006-07-08 Thread James Bennett
On 7/8/06, Iain Duncan <[EMAIL PROTECTED]> wrote: > Sorry, what is SLA? Service Level Agreement. In its most basic form, a written document that specifies a bare minimum level of reliability (e.g., "99.99% uptime, support response within thirty minutes") and specifies penalties if they fail to

Re: Deploying and set up on shared hosting?

2006-07-08 Thread Iain Duncan
> They do also offer business-level accounts with SLA-style guarantees > on uptime, though, and common sense would recommend going that route > if it's what you really need.. I've always marveled at the number of > people out there who claim to have "mission-critical" sites but are > unwilling

Re: Deploying and set up on shared hosting?

2006-07-08 Thread James Bennett
On 7/8/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > I found the attitudes of the admins to be very blasé. > with a 'what do you expect for a shared host' type response. Could you elaborate (off-list)? I know about your initial problem, and wouldn't rate it as anything approaching a normal

Re: Archlinux now running django!

2006-07-08 Thread Iain Duncan
Ian Holsman wrote: > congrats Sandro. > it looks great. > > I'd be interested to hear what you (and others) think were the > biggest obstacles you had and how you overcame them. > > regards > Ian Yeah, that's one of the nicest layouts I've seen (IMO) for an info-rich site. Especially like

Re: Deploying and set up on shared hosting?

2006-07-08 Thread Ian Holsman
my experiences have been vastly different to yours James. I found the attitudes of the admins to be very blasé. with a 'what do you expect for a shared host' type response. I would recommend going with someone who actually wants the business and knows how to support django. On 09/07/2006, at

Re: Archlinux now running django!

2006-07-08 Thread Ian Holsman
congrats Sandro. it looks great. I'd be interested to hear what you (and others) think were the biggest obstacles you had and how you overcame them. regards Ian On 09/07/2006, at 2:25 AM, Sandro wrote: > > http://www.archlinux.org has just redesigned their site which is now > powered by

Re: mod_python autoreload acts unpredictable

2006-07-08 Thread Ian Holsman
while I don't advocate developer's hitting production .. it happens, and can make life easier may I suggest you just set up a sudo command to bounce the server? I would also make it so you have 2 code-bases and the command would switch to the 'fresh' one. ie the script would do something

Re: Deploying and set up on shared hosting?

2006-07-08 Thread James Bennett
On 7/8/06, Iain Duncan <[EMAIL PROTECTED]> wrote: > I checked them out on a friends reco, but got the impressions that > reliable uptime for a business was not really their priority, so I don't > feel like I could in good faith put a clients site up there that is just > supposed to keep working.

Re: Deploying and set up on shared hosting?

2006-07-08 Thread Iain Duncan
>>how many other hosting providers are here ;-) > > > I don't have any formal connection with them, but TextDrive > (http://textdrive.com/) is fairly Django-friendly by nature, and I > wrote a (now slightly outdated, but I'll be updating it soon) manual > for deployment there:

Re: Deploying and set up on shared hosting?

2006-07-08 Thread James Bennett
On 7/8/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > how many other hosting providers are here ;-) I don't have any formal connection with them, but TextDrive (http://textdrive.com/) is fairly Django-friendly by nature, and I wrote a (now slightly outdated, but I'll be updating it soon) manual

Re: Deploying and set up on shared hosting?

2006-07-08 Thread Ian Holsman
On 08/07/2006, at 12:32 PM, Iain Duncan wrote: > > > > Jay Parlar wrote: >> Probably WebFaction (formerly python-hosting.com) would be your best >> bet: http://www.webfaction.com/shared_hosting > > That looks sweet. Anyone else have any feedback on these guys? Remi (the owner of webfaction)

Re: Cannot use the save() correctly

2006-07-08 Thread william
I've just tried with the dispatcher... same result. Is there any caching mechanism with the database link ? william wrote: > I've been trough the save() as documented here: > http://code.djangoproject.com/wiki/RemovingTheMagic#Overridingsaveanddeletemodelmethods > > But, this does not work

Re: Specify order of content items

2006-07-08 Thread David Robinson
[EMAIL PROTECTED] wrote: > Interesting! Nice to see an example of how to integrate dojo and > django, there aren't many... > > Are you building a custom administration interface for Sputnik which > allows for the reordering of news items by use of this technique? > Did you try to implement this

Cannot use the save() correctly

2006-07-08 Thread william
I've been trough the save() as documented here: http://code.djangoproject.com/wiki/RemovingTheMagic#Overridingsaveanddeletemodelmethods But, this does not work for fields having a ManyToMany relation. If you take the example with "publication" and "article" as described here:

Re: Referring to media files

2006-07-08 Thread Steven Armstrong
On 07/08/06 17:13, keukaman wrote: > I'm getting tantalizingly close to being able to put a simple Django > site online. Any help on this ticket will get me a long way toward > getting there: > > I have my media directories located at: > > /home/username/media >

Archlinux now running django!

2006-07-08 Thread Sandro
http://www.archlinux.org has just redesigned their site which is now powered by django! I luvs me my django and I luvs me my archlinux! Good times. http://www.archlinux.org/admin/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: FileBrowser Test Version

2006-07-08 Thread Jorge Gajon
Wow, thank you this is fantastic. It's highly probable that I'll use this soon. When I do, I'll make sure to give you feedback and contribute back with something of course. Thank you for releasing this, it will be very useful for a project we will work on soon. Cheers, Jorge On 7/8/06,

PostgreSQL Backup and Restore

2006-07-08 Thread Adam Blinkinsop
Geert Vanderkelen wrote: > Don Arbow wrote: > > On Jul 7, 2006, at 3:35 AM, Kenneth Gonsalves wrote: > >> another thing, your have to be careful about postgresql is that data > >> recovery tools for a borked db for postgres are rare to the point of > >> non-existence, whereas there are lots of

Referring to media files

2006-07-08 Thread keukaman
I'm getting tantalizingly close to being able to put a simple Django site online. Any help on this ticket will get me a long way toward getting there: I have my media directories located at: /home/username/media ./img ./css

Re: Deploying and set up on shared hosting?

2006-07-08 Thread Jay Parlar
On 7/7/06, Iain Duncan <[EMAIL PROTECTED]> wrote: > > > > Jay Parlar wrote: > > Probably WebFaction (formerly python-hosting.com) would be your best > > bet: http://www.webfaction.com/shared_hosting > > That looks sweet. Anyone else have any feedback on these guys? > If you search through the

Re: file upload with flash 8 uploader

2006-07-08 Thread spako
thanks for the response guys. i fixed the problem to with something similar to what you suggest Malcom. i started a new thread here: http://groups.google.com/group/django-users/browse_thread/thread/baa6c6d64f59639e that fixed the problem, seemed to will be sure to keep it together next time!

FileBrowser Test Version

2006-07-08 Thread patrickk
today we´ve finished the test version of our django filebrowser. some screenshots are here: http://www.vonautomatisch.at/django/filebrowser/ you can download the filebrowser here: http://www.vonautomatisch.at/django/filebrowser/FileBrowser.zip installation shouldn´t take more than 5-10

Re: Making session data visible to all templates?

2006-07-08 Thread shredwheat
Thanks, this is exactly what I was after. After setting this up, I realized I had a few render_to_response calls of my own that weren't building a RequestContext. Working great for me. Everytime I think I'm starting to get a handle on how django works, another facet like this is revealed.