Problem with conflicting flatpages between vhosts

2009-10-24 Thread Adam Olsen
te2.com/about/ would still load the flatpage from site1.com. -- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: invalid sytax when naming url

2009-10-15 Thread Adam Olsen
On Thu, Oct 15, 2009 at 10:14 PM, David wrote: > > I can't figure out why this is invalid syntax... You can't pass a keyword argument to a tuple. It should read: url(r'^$', object_list, list_args, name='list'), -- Adam Olsen SendOutCards.com http://www.v

Re: Writers for a Django Blog

2009-09-19 Thread Adam Olsen
ite, and any entries on my own blog that are tagged with "django", "web", "javascript" or something similar would automatically show up on your site. -- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic --~--~-~--~~~

Re: PyFacebook and python-twitter

2009-09-13 Thread Adam Olsen
x27;m sure it would be no trouble at all to install PyFacebook as well. -- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: Form Wizard won't proceed past the second step

2009-08-14 Thread Adam Olsen
= self.data.get(name, None) if code: return code I'm not sure if that's the correct way to go about it, but it's working for now. -- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic --~--~-~--~~~---~--~~ You received thi

Form Wizard won't proceed past the second step

2009-08-14 Thread Adam Olsen
this: urlpatterns = patterns('sendoutcards.retail.views', (r'^register/$', forms.RegistrationWizard()), ) My FormWizard, two Forms, and the templates involved are here: http://dpaste.com/hold/80601/ What am I doing wrong? -- Adam Olsen SendOutCards.com http://www.vimtips.org

Re: Simple query on a ManyToMany field?

2009-07-30 Thread Adam Olsen
On Thu, Jul 30, 2009 at 6:21 PM, Malcolm Tredinnick wrote: > I've written a couple of solutions for this over the years. Here's a > summary of some of them: > > http://www.pointy-stick.com/blog/2009/03/10/using-djangos-aggregation-features/ > That did it, tha

Simple query on a ManyToMany field?

2009-07-30 Thread Adam Olsen
list can be of variable length. How can I write a query that will return a list of Card objects that match ALL (not any) of the words? Is there a way to do it in a line or two without traversing all of the card objects? -- Adam Olsen http://www.vimtips

Re: Caching query results and ManyToMany relationships

2009-07-08 Thread Adam Olsen
the > queryset and caches it on the > model and always use that instead of teh default manager, that way when you > cache the obj if it has a local cache it will be stored. Ok, that's what I'll do. Thanks! -- Adam Olsen SendOutCards.com http://www.vimt

Caching query results and ManyToMany relationships

2009-07-08 Thread Adam Olsen
Is there a way to do this easily, or should I just cache the parameters manually? -- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Recursive ManyToMany field question

2009-05-19 Thread Adam Olsen
On Tue, May 19, 2009 at 11:12 PM, Russell Keith-Magee wrote: > You're looking for a non-symmetrical m2m relation: > > http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField.symmetrical > Exactly what I was looking for, thanks! --

Recursive ManyToMany field question

2009-05-19 Thread Adam Olsen
save() >>> car.related.add(automobile) >>> car.related.all() [] >>> automobile.related.all() [] How do I make it so that if I add a relation of 'automobile' to 'car', it doesn't automatically add a reverse relation like that? -- Adam Olsen http:

Re: Overriding save() method on models to automatically add ManyToMany relationship

2009-04-27 Thread Adam Olsen
proper syntax, it doesn't save the ManyToMany relationship. -- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Overriding save() method on models to automatically add ManyToMany relationship

2009-04-27 Thread Adam Olsen
there a way to make this work? -- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Adding a "View" Link (similar to add and change links) to the admin

2009-04-15 Thread Adam Olsen
someones come up with a better looking method. A better icon? Also, the template override is kind of ugly, see: http://rafb.net/p/qtVGDI52.html -- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic --~--~-~--~~~---~--~~ You received this mess

Adding a "View" Link (similar to add and change links) to the admin

2009-04-15 Thread Adam Olsen
Sometimes I want to give people access to a report in the admin section, and I'd like it to fit in and look well with the rest of the models in the associated application. Look at this image, you'll see what I mean: http://www.exaile.org/report.png That view button is just some "search" icon I