debug_toolbar and PYTHONPATH

2009-10-03 Thread Haroldo Stenger
hi folks, One of the install steps to get debug_toolbar up and running is adding 'debug_toolbar' to your PYTHONPATH. How is it meant to be done ? I was able to get debug_toolbar running, but that step got me really curious, since adding things explicitely to PYTHONPATH is not a common task worki

Re: return related objects from a queryset

2009-09-16 Thread Haroldo Stenger
in my humble opinion, don't care about messiness in the template, since messiness in the code is way worse. nontheless, you should be able to render the two querysets in the same template without additional hassle! Templates know nothing about models. The deal with lists when it comes to querysets

Re: View with "stages"

2009-09-16 Thread Haroldo Stenger
2009/9/16 Haroldo Stenger > I imagine mayself a special callable, a custom class f.i., that holds the > abstract structure of the whole dinamic management of buttons to show, and > stages to manage. The class would avoid some repeating code, namely, the > names of the buttons, and

View with "stages"

2009-09-16 Thread Haroldo Stenger
In my django programming, very often I find myself writing a view that has "stages", that is, the view manages several distinct situations that are identified by checking if a given dictionary key is present or not (that is, if a given button was pressed or was another one). The list of buttons th

Re: Editors of choice

2009-09-12 Thread Haroldo Stenger
I, like Nicolay, am using emacs too, with some nice packages that I've found along the way. Rope is installed in my ubuntu, but I don't know how to really use it yet. I hope I do. Learning Emacs pays a lot , especially since Emacs 23.1 ... , some of my packages are new versions of CEDET, etc. best

Terminology doubt

2008-03-28 Thread Haroldo Stenger
I have a terminology doubt: if my django project is called "p" and my django app within p is called "a", now in the context of django.contrib.admin.views, what do each of "app","model", and "id" stand for ? is "p" one of them ? which part of the doc should I check ? cheers h --~--~-~

Fwd: Saved&named searches

2008-03-05 Thread Haroldo Stenger
Thank you for Django, this is great. I'd like to implement a feature in my model, namely, being able to search a table based on boolean criteria, and have these criteria saved for later revision. Also, to be able to increment a score count in the positive search hits targeted records. Has this been