Re: export data to txt file

2007-09-16 Thread Russell Keith-Magee

On 9/17/07, Joaquin Quintas <[EMAIL PROTECTED]> wrote:
>
> Gjango users... i am new usign django, and this is my first
> requirement, i have not idea.. please HELP!
> i have a function that exports data to xml, now the users wants that
> the same function exports to tt file..

What exactly do you mean by a 'txt' file? Depending on your desired
output format, there are a number of ways that you could do this:

- Use the JSON or YAML backend to produce a .txt file
- Write a custom serialization backend that formats in your preferred format
- Write a view that returns text content, with a template providing
the formatted data.

All of these would produce 'data exported to a txt file'. The right
approach will depend on exactly what you are trying to acheive.

Yours,
Russ Magee %-)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



export data to txt file

2007-09-16 Thread Joaquin Quintas

Gjango users... i am new usign django, and this is my first
requirement, i have not idea.. please HELP!
i have a function that exports data to xml, now the users wants that
the same function exports to tt file..

any ideas?

thanks in advance


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---