Re: Django is very slow on windows server 2003, mssql database

2012-03-13 Thread Phanounou
Good morning Javier, Thanks a lot for the quick answer. The thing is that I'm having the problem on the admin page, it is not involving any coding from my part what so ever. So that is why I don't get it. When you say "the admin objects can be annotated to make the necessary prefetching." what do

Re: Django is very slow on windows server 2003, mssql database

2012-03-13 Thread Phanounou
e that my custom pages take less time to load. Regards, VB 2012/3/13 Javier Guerra Giraldez > On Tue, Mar 13, 2012 at 9:55 AM, Phanounou > wrote: > > I installed the django_debug_toolbar and I see that in the sql part I > have > > 1852 queries in 18228.00ms. > >

Re: Django is very slow on windows server 2003, mssql database

2012-03-13 Thread Phanounou
Hello, have tryed to use the formfield_for_foreignkey() and formfield_for_manytomany() in the admin.py file. In fact, I have reduced the reponse time (around 10 sec. less then before) by replacing extra = 2 by extra=0 in my admin.StackedInline objects. It still taking 20-24 seconds to edit an ob

Re: Django is very slow on windows server 2003, mssql database

2012-03-14 Thread Phanounou
how to resolve this issue. Regards, VB 2012/3/13 Javier Guerra Giraldez > On Tue, Mar 13, 2012 at 2:14 PM, Phanounou > wrote: > > Hello, > > > > have tryed to use the formfield_for_foreignkey() and > > formfield_for_manytomany() in the admin.py file. In fact, I

Re: Django is very slow on windows server 2003, mssql database

2012-03-14 Thread Phanounou
2012 at 7:55 AM, Phanounou > wrote: > > This is what is taking the most of the time. the gattering of the list of > > TObjectAttribute, 3 or 4 times each at a time because TmyObject has 3-4 > > attributes value. Because I called it as an admin.StackedInline object in > &

Re: How to download a file

2011-11-10 Thread Phanounou
Hello AT, Thanks for your suggestion but I cannot do it this way because I can only developpe with the built-in server. So that's why I was trying to to send it through response. Do you have a suggestion for that? Thanks again, VB 2011/11/10 Andre Terra > You should serve your files directly t

com_error

2011-11-24 Thread Phanounou
Good day everyone, I am trying to create/edit and close an excel file. Everything went fine on my developpement machine. But on the prod server I get the* following error* : com_error at /mycontracts/getContactClient/ (-2147221005, 'Invalid class string', None, None) *and this trace back* Env