Formsets issue

2009-02-18 Thread Thomas Hill
Hey all, Been trying to display multiple form rows for a project lately, and I just wanted to confirm that I'm doing this right. I found a solution on http://www.pointy-stick.com/blog/2009/01/23/advanced-formset-usage-django/ , and I took what I needed from it (my code below), but I found th

Re: Formsets issue

2009-02-18 Thread Thomas Hill
Ah, yes, indeed. Will definately do that, thanks. Regarding the formset classes and form classes with their try/except lines, however, does that look "right"? On Wed, Feb 18, 2009 at 10:31 AM, Brian Rosner wrote: > > > On Feb 18, 2009, at 10:16 AM, Thomas Hill

Re: Formsets issue

2009-02-18 Thread Thomas Hill
Brilliant, thank you! I'll take care of this later tonight. Thanks again, Brian. On Wed, Feb 18, 2009 at 10:40 AM, Brian Rosner wrote: > > > On Feb 18, 2009, at 11:33 AM, Thomas Hill wrote: > > > Ah, yes, indeed. Will definately do that, thanks. Regarding the >

Re: Django and PyAMF - RemotingError

2009-06-25 Thread Thomas Hill
IIRC, pyAMF tries to turn all python objects into amf related ones upon output. What you may be seeing here is that querysets aren't able to make it through this conversion. Check your apache error logs for the stacktrace, if you have one, or like Randy said, set Debug = True. On Thu, Jun 25, 2009

Re: django & flex

2009-08-31 Thread Thomas Hill
Yup, I was going to reply with this as well. One draw back to this, however, is that it makes the app a little bit more complicated to test and debug, I've found, unless you concoct your own other test cases that import the pyAmf libs and test separately. Another thing you might want to think about

Custom get_object_or_xxx?

2009-03-26 Thread Thomas Hill
Hey all, I'm trying to implement a function similar to get_object_or_404. I'm trying to check permissions for a user, and if those permissions are met, then I want them to be sent to a page explaining what's going on. I found the exception PermissionDenied, but I can't find a way to do a custom per

Storing related models in cache?

2009-06-07 Thread Thomas Hill
Hey all, I'm trying to save on db queries in an online game I'm making, so I'm trying to save as many things in memcached as possible, and invalidating whenever the game state changes. So upon the first call, or after a game state change, I pull in my game model instance, and all of the related mod