I tried the code below:

from django.template import loader, Context

def NewspaperSelect(request,u_id):
        t=loader.get_template(r'C:\django\noddler\news\template.vxml')
        c=Context({ 'topic':'news', 'content':pn })
       return HttpResponse(t.render(c), mimetype='application/xml')

I verified that the file is in the location. But when i compile it
keeps telling that template file does not exist. What to do?



On Dec 1, 4:57 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> On Dec 1, 2008, at 7:51 PM, Vicky wrote:
>
>
>
> > Can we use XML files as templates instead of HTML?
>
> Anything that comes as a plain text file can be produced by a  
> template: HTML, XML, plain text, email, iCAL, source code...
>
> Yours,
> Eric
>
>
--~--~---------~--~----~------------~-------~--~----~
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