Why Django Apps Suck

2010-09-21 Thread klaasvanschel...@gmail.com
Ok here it goes: I don't have a proper platform for my observations / rants so I figured I'd try my luck here. Django has been my favorite framework for developing web applications for about a year and a half, so it comes from a position of love when I say that the Django app really sucks as a

Problems with Django File Fields

2010-05-31 Thread klaasvanschel...@gmail.com
Hi All, The standard Django File Fields (both on models and the form equivalent) have a number of shortcomings from my point of view / in my field. The most important of these are: * The result of uploaded file fields are assumed to be "public", i.e. served through the MEDIA url. I would rather

Re: Othogonal aspects to models

2010-02-22 Thread klaasvanschel...@gmail.com
Thanks Shawn - but James' talk is exactly what got me into this mess :-) I'm aware of the possibility of specifying the model to be used as a default kw arg in views etc. But I want all my models to become 'owner aware'. http://code.google.com/p/django-granular-permissions/ approaches the model's

Othogonal aspects to models

2010-02-21 Thread klaasvanschel...@gmail.com
Hi all, Maybe I'm asking the wrong questions, maybe I'm asking the impossible, maybe I need to do the hard thinking myseld. Anyway: here's my problem. We have a bunch of projects (about 4 big customers), some of which have significant overlap. The current approach is copy/paste, supported by

New Session[_id] per request

2010-02-03 Thread klaasvanschel...@gmail.com
Hi to all, I'm having some trouble with setting up a session with one of my clients. Which is: I've spent a good part of my day chasing ghosts trying to find out where it goes wrong. For some reason every request that client does shows up with a different session_id in my django_session table.

Re: default input format for dates that will work for ModelForm?

2009-05-05 Thread klaasvanschel...@gmail.com
This is in Django 1.0.2 On May 5, 6:23 pm, "klaasvanschel...@gmail.com" <klaasvanschel...@gmail.com> wrote: > Hi, > > I would like to present the user with dates in their particular locale > (Dutch). Both when presenting the date and when parsing it. > > As I

default input format for dates that will work for ModelForm?

2009-05-05 Thread klaasvanschel...@gmail.com
Hi, I would like to present the user with dates in their particular locale (Dutch). Both when presenting the date and when parsing it. As I understand, for individual form's fields this should be possible like so: my_date = forms.DateField(input_formats=('%d-%m-%Y',)) Overriding this

Re: Combine QuerySets from two different child models

2009-01-06 Thread klaasvanschel...@gmail.com
since this turns up first I thought I'd post my quick & dirty solution here for the copy-pasters of the interwebs: def children(self): class Union(object): def __init__(self, cmp_on, sources): self._sources = sources self._tops = [None] *