use_for_related_fields and filtering results - really a no-go?

2009-12-20 Thread kahless
hi, the documentation for use_for_related_fields states that it shouldn't be used for filtering results: http://docs.djangoproject.com/en/dev/topics/db/managers/#do-not-filter-away-any-results-in-this-type-of-manager-subclass i just wanted to know if this advice should always be followed (or when

Re: Comparing discussion forum apps

2008-02-26 Thread kahless
hi, i have tried to fill out the table for my project (sphene community tools). but.. umm.. "500 Internal Server Error (Submission rejected as potential spam)" to sum it up: On Feb 25, 7:15 pm, akaihola <[EMAIL PROTECTED]> wrote: > - posting without registration yes, can be configured (if

Re: Experimental port of Django to Java

2008-01-05 Thread kahless
On Jan 4, 9:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > newforms, etc.). I choose to use Hibernate and Freemarker for the > Model and Template but these could be easily switched out. since you are working with hibernate you might also be interested in my project where i tried to

Extensible django applications

2007-12-24 Thread kahless
Hi, a while ago i have written a similar question: http://groups.google.com/group/django-users/browse_thread/thread/b42239bcfb85e21f/0ec972719fbde390#0ec972719fbde390 and beside an extensible view for profiles i have now also added a few extension mechanisms for my forum application

Re: Will there be a django 0.97 release ?

2007-11-09 Thread kahless
On Nov 9, 12:41 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > release, remain valid. It might sound harsh, but nothing's changed since > then. It's very time consuming to go around again on this topic (in > fact, it will slow down the next release, and I gather people in this > thread want

Re: Will there be a django 0.97 release ?

2007-11-09 Thread kahless
On Nov 9, 2:58 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > work towards 1.0. Trust me on this: the maintainers want to get it out > the door as much as you do. i'm sure they do .. but my "fear" (or .. guess) is that it might be more important to be bug-free and stable for such a big

Re: Will there be a django 0.97 release ?

2007-11-08 Thread kahless
On Nov 8, 10:53 pm, RajeshD <[EMAIL PROTECTED]> wrote: > I understand the concern, but how does having a 0.97 release change > this for you? There would still be potentially backwards-incompatible > changes moving forward from 0.97 to the next official release. of course there will be

Will there be a django 0.97 release ?

2007-11-08 Thread kahless
Hi, Sorry if these questions are getting boring since everyone wants to know when the next release (and 1.0) is released .. but i haven't found a answer by searching the forums... After so many backward incompatible changes it would be really nice if there would be a new django release. I want

Re: Django-based forum software?

2007-09-01 Thread kahless
hi, i'm the author of SCT (Sphene Community Tools: http://sct.sphene.net ) - it tries to be as easy to integrate and customizable as possible (and still to keep some kind of simplicity) - so it would be nice to hear the requirements from people. by default it basically looks like this:

Re: accessing id attribute of a ForeignKey without additional DB queries

2007-08-18 Thread kahless
On Aug 16, 1:42 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > This behaviour is valid, and will remain so. Django uses this feature > internally in many places, especially in the serializers. thanks, good to know :) > Any suggestions on how to improve the documentation of this issue

accessing id attribute of a ForeignKey without additional DB queries

2007-08-15 Thread kahless
Hi, I have a simple 'Post' model which has a 'author' ForeignKey linking to a 'User' object - is there a way to access post.author.id without django triggering a database query ? - i tried to use the db column name - post.author_id .. and it worked.. so the question remains - is this behavior i

template inheritance - {% extends NEXTLOADER %}

2007-06-16 Thread kahless
hi, is there a way to extend a template with the same name, but in another template loader ? more specific.. it would be nice if i could customize only specific blocks of templates by simply adding a new template loader (or another template directory) and creating a file with the same name as

Creating extensible views ?

2007-05-07 Thread kahless
Hi, I've found documentation on how to make applications to work together smoothly .. but is there also some documentation on how i could make an application (or views of an application) extensible.. For example like in eclipse having "extension points" where 3rd party applications could hook

Re: Created pluggable board and wiki applications

2007-02-22 Thread kahless
ck, my install of myghtyboard is so modded > it's almost a branch at this point. > > On Feb 21, 2:15 pm, "kahless" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Since i haven't found any existing board / wiki applications which > > would fit my needs

Created pluggable board and wiki applications

2007-02-21 Thread kahless
Hi, Since i haven't found any existing board / wiki applications which would fit my needs and are easy enough to integrate into a custom django project, i have created my own .. i tried to stick to the http://code.djangoproject.com/wiki/DosAndDontsForApplicationWriters as much as possible.. and

Re: Custom model initializers - getting logged in user in django models

2007-02-17 Thread kahless
where in my application and it > will provide me with the current user, for some fields I even have > something like: > > user = models.ForeignKey( User, default=get_current_user ) > > I cannot take credit for this, I found it on > > http://code.djangoproject.com/wiki/C

Custom model initializers - getting logged in user in django models

2007-02-17 Thread kahless
around a little until it worked for me: http://yourhell.com/~kahless/query_initializers_patch.diff the usage is quite simple: class MyModelInitializer(object): def __init__(self, request): self.request = request def init_model(self, model): model.do_init( self, self.request.user ) (my

Why not making RequestContext the default Context ?

2007-01-30 Thread kahless
hi, is there a reason why by default the render_to_response uses a Context and not RequestContext ? since it's the goal to make applications (and therefore templatetags & co) as independent as possible (afaik) so it would be possible to simply call templatetags from another application imho

Accessing the current request object in a template loader

2006-12-17 Thread kahless
hi, i want to make a simple template loader which loads from directories depending on the sub-site the user requests a page from. (or probably also from the user session - which theme he has set, etc.) so i would need to get the current request object but haven't found a solution for that