Home

Django and Services @ 2007-07-29 20:51:15
Filed under: Code  Django  Tech 
I've been playing around with using Django as a web services tier with REST. I've been reading a lot about ROA architecture and it makes a heck of a lot of sense. I am impressed with the out-of-the-box features Django has to make it easy. To put it simply ... I could not believe transformation was this easy:
from django.core import serialization
....

return serialization.serialize('xml', model_object)

Boom! It's xml. Want to use JSON instead?
from django.core import serialization
....

return serialization.serialize('json', model_object)

Done. I assumed that the transformation would be the hardest part. But the transformations (in both directions) are painless. Yay Django!

 digg it   seed it   del.icio.us   ma.gnolia
Tags:      


 
Ohloh profile for ashcrow View Steve Milner's profile on LinkedIn A Django joint.
© 2007-2008 Steve 'Ashcrow' Milner | Studio7designs | Arbutus Photography