CSRF Flatpages

2009-11-28 Thread John Leith
I have a problem with the CSRF framework, and i'm just checking here to see if anyone else ran into this problem and hopefully found a solution. Here is my problem: I have a login form on the base template of my site. The home page is just a flatpage. My login processor is csrf protected. I have

Re: Issues with select_related()

2008-02-22 Thread John Leith
right i figured it out: i had " nulls=true " in the field and so it wasn't followed :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Issues with select_related()

2008-02-22 Thread John Leith
I'm noticing some oddness with select_related()... >>> invoice = Invoice.objects.select_related().get(pk=7000) >>> len(connection.queries) 1 >>> invoice.Student_ID >>> len(connection.queries) 2 Shouldn't it be the same number of queries? Here we have an Invoice with a foreign key to a

Re: using mod_python to host several django apps on the same vhost?

2008-02-11 Thread John Leith
make a new separate urlconf (name it `config_urls.py` or something) for each project `x/` and `y/` make the urlconf in each of them something like this: patterns = ( (r'^x', include("urls")), ) and the other file: patterns = ( (r'^y', include("urls")), ) Then your app will be able to read