Malcolm Tredinnick wrote:
> > I am trying to serialize some model data with the output going to a
> > file. I am doing it the way its suggested in the documentation.
> >
> > XMLSerializer = serializers.get_serializer("xml")
> > xml_serializer = XMLSerializer()
> > out = open("file.xml", "w")
> > x
On Wed, 2007-05-23 at 03:51 +, Ramashish Baranwal wrote:
> Hi,
>
> I am trying to serialize some model data with the output going to a
> file. I am doing it the way its suggested in the documentation.
>
> XMLSerializer = serializers.get_serializer("xml")
> xml_serializer = XMLSerializer()
>
Hi,
I am trying to serialize some model data with the output going to a
file. I am doing it the way its suggested in the documentation.
XMLSerializer = serializers.get_serializer("xml")
xml_serializer = XMLSerializer()
out = open("file.xml", "w")
xml_serializer.serialize(SomeModel.objects.all(),
3 matches
Mail list logo