Paginator - JSON - Serializing related issue

2008-10-02 Thread H. de Vries
Hey everyone, I have the following: [snip] def people_json(request): userobjects = User.objects.filter(is_superuser=False).extra(order_by = ['auth_user.username+0']) p = Paginator(userobjects, 10) pagenumber = request.POST.get('pagenumber', 1) try:

Re: Paginator - JSON - Serializing related issue

2008-10-20 Thread H. de Vries
Hey Rajesh, Thank you so much for your comment. Somehow Google didn't sent me a message that I had a reply on my post, so that's why I'm late with my reply. I think your solution looks neat, but this way I would still need 2 ajax requests wouldn't I? Doesn't self.options.pop('fields', None) del

Converting my Django app so that it uses one database: what approach to use for auth?

2012-09-04 Thread H. de Vries
Hey all, At the moment I have a Django app that has multiple settings files and multiple databases for my customers. I run a separate Django instance for each customer. I'm going to put it all together in 1 database so that I can run it in one instance. This makes creating new customer accounts