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 = Conte
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 = request.PO
2 matches
Mail list logo