I'm using 1.0 alpha, and had the same problem.  Adding
'mimetype':'text/xml' as noted worked perfectly.
thanks for the post!!


On Aug 9, 8:25 pm, Valery <[EMAIL PROTECTED]> wrote:
> Hi Julien,
>
> thank you for the answer.
>
> I've just tested your code, the effect is the same. Namely,
> opensearch.xml returned from server has "text/html" type and not "text/xml".
>
> regards
> Valery
>
> On 7 авг, 09:15, Julien Phalip <[EMAIL PROTECTED]> wrote:
>
> > The 'mimetype' argument is at the same level as 'template' and
> > 'extra_context'. Therefore your code should be:
>
> >    (r'^opensearch.xml$',
> > 'django.views.generic.simple.direct_to_template',
> >                           {'template': 'opensearch.xml', 'mimetype' :
> > 'text/xml'}),
>
> > On Aug 7, 5:07 pm, "Valery Khamenya" <[EMAIL PROTECTED]> wrote:
>
> > > Hi all,
>
> > > the following entry:
>
> > > ...
> > >    (r'^opensearch.xml$', 'django.views.generic.simple.direct_to_template',
> > >                           {'template': 'opensearch.xml', 'extra_context' :
> > > {'mimetype' : "text/xml"}}),
> > > ...
>
> > > inurls.pyworks out for me as text/html, nottext/xml.
>
> > > Anyone has comments on this? Thanks!
>
> > > best regards
> > > --
> > > Valery A.Khamenya
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to