Re: file read/write location

2010-10-16 Thread jimgardener
I was writing a lot of wep page content to the files for later comparison.So I thought ,writing to file was better than writing to db.. thanks jim > Also, if you dont mind me asking, why not just use the database for > recording and retrieving data, thats whats its there for. > > Rob :) -- You r

Re: file read/write location

2010-10-16 Thread Robbington
Hi Jim, I would assume that Django writes and reads files to myproject because in its mind it is the top level directory for your project environment. To Django + python nothing else really exsists. If that makes sense? Also, if you dont mind me asking, why not just use the database for recording

file read/write location

2010-10-16 Thread jimgardener
hi I have a django project at /home/dev/python/django/myproject .In an app in this project I have some utility programs which has a file writing function. myproject/myapp/utilities/filewritingutility.py def write_to_file(filename,data): with open(filename,'w') as f: f.write(