Re: saving unicode data in file

2008-12-24 Thread Matias Surdi
Finally I've solved it with smart_str function. Matias Surdi wrote: > Hi, I'm trying to save on a FileField some generated data (a text file > obtained from a template): > > The relevant code is: > > out = Template(open("/path/to/template").read()) > context =

saving unicode data in file

2008-12-23 Thread Matias Surdi
Hi, I'm trying to save on a FileField some generated data (a text file obtained from a template): The relevant code is: out = Template(open("/path/to/template").read()) context = Context({}) if request.POST["name"] != "": name =