Re: Trying to determine the duplicate SQL queries from my view code

2010-11-02 Thread Matteius
OK so I have solved this, the flaw being my understanding of the cacheing of Django database QuerySets. I still have not eliminated the double auth_user request because one is made in the @login_required directive and the other is made in the view code to pass user data to the template. However i

Trying to determine the duplicate SQL queries from my view code

2010-11-01 Thread Matteius
In this case there is no form POST data so that code gets skipped. I started profiling with the django_debugger_toolbar and my SQL data results are at the bottom. There are duplicate SQL select statements for handin_course and auth_user which doesn't make sense to me as I understand how views sho