Issue with authenticate and login

2008-12-07 Thread Zeroth
Currently, when I login, it doesn't show me as having logged in, or logged out. Doesn't show up until I restart the server. I think it may be an issue with the session framework. Here's the dpaste link of my login view, and my middleware/installed apps settings. _login is the provided

Re: How construct specific complex queries?

2008-12-03 Thread Zeroth
mail)) items = items.exclude(visibility__Visible__exact=False) items = items | ListItem.objects.filter (WList__exact=wlist_id).exclude(visibility__isnull=False) What this does is makes sure that all privacy constraints are properly adhered too. -Zeroth On Dec 3, 5:36 pm, Zeroth <[EMAIL PR

How construct specific complex queries?

2008-12-03 Thread Zeroth
I'm trying to construct complex queries, to better use the database (fewer hits, less slowdown). The models: List model, has a boolean called Public. Item model, is related to the List model via foreign key. Visibility model, is related to the Item model via foreign key, and has information like

Re: Adding new forms dynamically to the page?

2008-11-30 Thread Zeroth
Thanks Steve. I've got the server-side portion done, just need to now work on the javascript. :) On Nov 30, 9:02 am, Steve Bergman <[EMAIL PROTECTED]> wrote: > When you add a form with javascript, you must also increment the > hidden field in the management form which holds the form count. >

Re: Adding new forms dynamically to the page?

2008-11-30 Thread Zeroth
So to clarify, I'd be modifying the new rows on the client side, correct? On Nov 29, 9:47 pm, "Felipe Sodré Silva" <[EMAIL PROTECTED]> wrote: > I don't see why it wouldn't. > > On Sun, Nov 30, 2008 at 3:42 AM, Zeroth <[EMAIL PROTECTED]> wrote: > > > T

Re: Adding new forms dynamically to the page?

2008-11-29 Thread Zeroth
nt that tells how many > elements are there in the form so far. This is more elegant than string > manipulation, and also more efficient. > > Cheers, > > Felipe > > On Sun, Nov 30, 2008 at 3:01 AM, Zeroth <[EMAIL PROTECTED]> wrote: > > > I'm making essentially a wish

Adding new forms dynamically to the page?

2008-11-29 Thread Zeroth
I'm making essentially a wishlist webapp(for fun). However, I would like to make it so that the user can press a button, and add another row for entering an item, via AJAX. My issue is making sure that the webserver processes all the data properly. I've been looking at formsets, and maybe using a

Re: transactions in django

2008-11-29 Thread Zeroth
Are you using a mysql database? That may be the source of the trouble. IIRC, some versions of MySQL, depending on the inner database, don't support transactions. -Zeroth On Nov 29, 6:56 pm, "I.A" <[EMAIL PROTECTED]> wrote: > hi guys, > > i'm wondering how transaction