Re: Has anyone made an MS excel exporter in a django site yet?

2008-04-09 Thread Steve M
It it's just one table, you can write an HTML table and name the file with the .xls extension. Excel will open it just fine. Something like this: On Apr 9, 6:43 pm, Roboto <[EMAIL PROTECTED]> wrote: > I'm curious =P A couple of my users are requesting that I find a way > to export some data to e

autoreload files stored on SMB share

2006-09-25 Thread Steve M
Hi, I have my Django project source files on a SMB share (it is a Linux file server). I am running the development server on a different Linux computer, which has the SMB share mounted (with smbfs). The autoreload feature causes the server to restart every second whether or not I have modified

IE ignores Content-disposition on Apache but not development server

2006-10-06 Thread Steve M
I want my view to respond with a file for downloading, so that the browser pops up the download/file save dialog. I am using the 'Content-Disposition' header to specify the name of the file. When I use the django development server, it works perfectly in Firefox and IE6 (latest versions). When I s

Re: Still really struggling with JOINS

2006-10-10 Thread Steve M
Hi, I myself am learning this, but I'd like to take a crack at your question. Based on the DB API document, you need to employ both select_related() (to go from a model with a FK to the objects related by that FK), and somefield_set (to go the other way). (Note it seems select_related is a method

Re: django embedded web server

2006-10-18 Thread Steve M
I've been following this and related threads with some interest. I think it would be nice to have a pure python (requiring no setup of, e.g., Apache) webserver included with Django that was more capable than the current Django development server. I recently stumbled across this: http://pythonpast

Re: Using Object Relational Mapper

2007-01-22 Thread Steve M
I have a similar but not the same need. I do use the full Django stack, but I need to write helper programs that can interact with the database but have nothing to do with the web. This matters because I already have a normal Django project and some apps set up, but you may need to make a dummy pr

basic question about concurrent access

2006-08-24 Thread Steve M
I have a basic question about concurrency. Suppose I have a table Users, with a column email_address, and a view that allows updating records from this table. Suppose further that two different sessions, Alice and Bob, have loaded the view on a specific record, say, record 15. The view shows the