Problem with conflicting flatpages between vhosts

2009-10-24 Thread Adam Olsen
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" group. To post to

Re: invalid sytax when naming url

2009-10-15 Thread Adam Olsen
On Thu, Oct 15, 2009 at 10:14 PM, David <davidkazuh...@gmail.com> 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

Re: Writers for a Django Blog

2009-09-19 Thread Adam Olsen
er my own RSS feed with your site, 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
faction account. I'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

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

2009-08-14 Thread Adam Olsen
e = 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 this messag

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 http://last.fm/user/synic

Re: Simple query on a ManyToMany field?

2009-07-30 Thread Adam Olsen
That did it, thanks! -- Adam Olsen 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, send email to django-users@googl

Simple query on a ManyToMany field?

2009-07-30 Thread Adam Olsen
. 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.org http://last.fm/user/synic

Re: Caching query results and ManyToMany relationships

2009-07-08 Thread Adam Olsen
the Model class that pulls in 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.vimtips.org h

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 "Dja

Re: Recursive ManyToMany field question

2009-05-19 Thread Adam Olsen
On Tue, May 19, 2009 at 11:12 PM, Russell Keith-Magee <freakboy3...@gmail.com> 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,

Recursive ManyToMany field question

2009-05-19 Thread Adam Olsen
] >>> 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://www.vimtips.org --~--~-~--~~~---~--~~ You received this message becaus

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

2009-04-27 Thread Adam Olsen
Even with the 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 "Dj

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

2009-04-27 Thread Adam Olsen
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, send email to dj

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

2009-04-15 Thread Adam Olsen
p 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 message because you

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