On Fri, Apr 24, 2009 at 2:41 PM, Masklinn <[email protected]> wrote:
>
> On 24 Apr 2009, at 10:55 , earcar wrote:
>> 1. does Django support REST queries?
> I fear that question doesn't make any sense, REST is an architectural
> style, not a language or anything, there are no "REST queries".
>
> Other than that, yes you can make django understand remote procedure
> calls via URLs, there might even be third-party apps for that. I don't
> think Django has any "native" support for that though.

Yeah, your're right, I meant "does Django provide a way to do RESTful
applications easily (so: xml serialization and response validation and
deserialization)?"

>> 2. is possible to do a Django application without db? Are there any
>> ORM things that will do the same job for XML data instead? If not, is
>> possible to do that for mere mortals (with xpath/dom/sax as the
>> preferred ways)?
> Where are you storing your XML data exactly?

The data is hardcoded in an XML file stored on the user's pc, and
uploaded to the server through an http POST. There's actually no need
for a DB.

>> 3. is possible for Django to validate the XML of every single REST
>> query (input and output) using XSD?
> Why wouldn't it be?
>
>> 4. is possible to render views using xslt?
> I think you mean templates here, in Django's lingo. Yes you can
> although it might not be the smartest idea ever, and you won't be able
> to use Django's template system

Why is it not a good idea?

>> or better render in xml,
> Use Genshi as a template engine instead of django's template system.
>
>> leaving the xslt work to the browser?
> That's a bad idea. If only because not all browsers can do that.

Are there other reasons why it's a bad idea?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to