Hi, some of my views serve part of an html (or, actually, xhtml document), such as:
""" <div> <p>...</p> </div> """ or """ <form ...><legend>...</legend> <fieldset> ... </fieldset> </form> """ I'm running into problems whatever content type I use. I use an automatic validator during testing, that validates all text/html or application/xhtml+xml documents. So I could went to application/xml for these documents to circumvent this validator But I also use the csrf middleware, and some of these part documents are forms which need the csrf token. The csrf middleware only works for content types text/html and application/xhtml+xml ... My current plan is to go back to text/html and add a special header that tells the validator to skip this document. But ... what is the correct content type for such documents? Michael -- noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg - Tel +49-911-9352-0 - Fax +49-911-9352-100 http://www.noris.de - The IT-Outsourcing Company Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Hansjochen Klenk - Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---