Re: can django add custom permission without module association?

2009-06-15 Thread andybak
I spotted this the other day: http://www.djangosnippets.org/snippets/334/ On Jun 15, 5:42 am, victor wrote: > can django add custom permission without module association? > if can,how to? > thx a lot. --~--~-~--~~~---~--~~ You received this

Re: A puzzling problem with admin

2009-05-13 Thread andybak
Getting somewhere... I'm running on Django 1.0 via nginx/fcgi When I run via the dev server (leaving everything else the same) the problem goes away. How can the effects of a POST to a model form in admin be affected purely by switching between fcgi and the dev server?

Re: Fewer columns in admin popups

2009-04-16 Thread andybak
Is there any other approach to this that could be thread safe? On Apr 16, 10:46 pm, Dave Benjamin wrote: > On Apr 16, 2:20 pm, Alex Gaynor wrote: > > > This code isn't threadsafe.  If you use your application in a multithreaded > > application

Re: Something is eating memory. How to track it down?

2009-04-09 Thread andybak
Thanks everyone. I might offload some big processes into a separate process. The background knowledge I've aquired from this thread is going to help a lot. I still have no flipping idea how to use heapy though! On Apr 9, 12:30 am, Malcolm Tredinnick wrote: > On Wed,

Re: Something is eating memory. How to track it down?

2009-04-07 Thread andybak
I've got no really huge tables - the entire db is under 6meg and the site isn't even public yet so traffic is minimal. Memory just doesn't seem to go down. (until the process get's restarted by maxchild or by me killing it). I have been labouring under the assumption that memory gets freed

Re: Easy way to create pretty pages with nav?

2009-04-06 Thread andybak
Nothing wrong with designing your site using visual tools. Get your basic page look and feel set up as a single static HTML + CSS. That page becomes your base template. Stick a single {{ content }} placeholder in and you can start inserting dynamic content into your template from any of your

Re: Can I use Components and Classes in Django for views/controllers?

2009-04-01 Thread andybak
Without really examining the problem in detail it doesn't sound like you are doing anything that isn't possible with a combination of context_processors (for common variables) and template inheritance/ includes. Each view constructs the specific context, a custom context processor provides site

Re: Multiple ModelAdmins for a single Model

2009-03-27 Thread andybak
Did the proxy table solution that Alex suggested work out for you? That's the one I try just as soon as I upgrade to trunk (some of the admin template changes in trunk breaks my admin template overrides so I might hold off for the 1.1 release in case it changes some more) On Mar 24, 2:53 pm,