Django is very slow on windows server 2003, mssql database

2012-03-13 Thread Virginia
Good morning everyone, I have a web site that was develop in django on a windows 2003 server and a mssql database. Latetly it seems that the web site is going slower and slower. We add datas but not that much to slow it down so much. I run it on my dev environnement with cProfile and looking at th

Re: com_error

2011-11-24 Thread Virginia
I forgot to mention that Microsoft office is not install on the server. Is it a problem? Regard, V.B. On 24 nov, 09:58, Phanounou wrote: > 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

How to download a file

2011-11-10 Thread Virginia
Good day everyone, I'm trying to allow a user to dowload to his machine an excel file from the server. This is my code: wrapper = FileWrapper(open(path_to_file)) content_type = mimetypes.guess_type(path_to_file)[0] response = HttpResponse(wrapper,content_type=content_type)