Create files and directories from Django 1.2.1

2010-08-14 Thread Mark Mooij
Hi all, I recently migrated from Django 1.1.1 to 1.2.1. In 1.1.1 I had an application which imports an external python script in which a directory and some files are created. Since the migrate this doesn't work anymore, I get a number of IOErrors because the files (and directory) that should be cr

Re: Create files and directories from Django 1.2.1

2010-08-15 Thread Mark Mooij
maps/"+str(id)+"/"+str(id) + ".kml" f = open(writefile, 'wb') ... I hope this helps? On 14 aug, 21:55, Mike Dewhirst wrote: > On 15/08/2010 12:10am, Mark Mooij wrote: > > > Hi all, > > > I recently migrated from Django 1.1.1 to 1.2.1. In

Re: Create files and directories from Django 1.2.1

2010-08-16 Thread Mark Mooij
On 16 aug, 08:32, Mike Dewhirst wrote: > On 16/08/2010 12:57pm, Mike Dewhirst wrote: > > > > > > > On 16/08/2010 1:06am, Mark Mooij wrote: > >> Hi Mike, > > >> Thanks for your reply. I haven't changed anything else, I am > >> proces

Re: Create files and directories from Django 1.2.1

2010-08-16 Thread Mark Mooij
Also I find it strange that makedirs command rises an error when calling from Django ("mkdir() takes exactly 1 argument (2 given)"), but again outside Django this works just fine.. Hope anybody has any suggestions.. Mark On 16 aug, 14:22, Doug Blank wrote: > On Mon, Aug 16, 2010 at