You wrote 11 ??????? 2007 ?., 13:55:42: > Alex Nikolaenkov wrote: >> Hello guys, >> I like just about everything in django, but at this point of me reading >> django >> book I can't imagine the way of xmlizing django.
> There are serializers in Django: > http://www.djangoproject.com/documentation/serialization/ >> Is there a way to use XSLT templates instead of standard django template >> language? > It could look something like this (not tested of course :-) ): > from django.core import serializers > from models import MyModel > def my_view(request): > object_list = MyModel.objects.all() > xml = serializers.serialize('xml', object_list) > return HttpResponse(xml, mimetype='application/xml') Thank you. The idea is perfectly clear :) -- Best regards, Alex mailto:[EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---