On Dec 2, 2008, at 5:50 PM, Vicky wrote:
>
> I did as you said. Still its giving the same error :(
Do you have the correct permissions on the TEMPLATE_DIRS directories?
Have you written the paths with forward slashes? That's all I can
think of.
E
>
>
>
> On Dec 2, 11:38 am, Malcolm Tredin
On Dec 2, 2008, at 5:50 PM, Vicky wrote:
>
> I did as you said. Still its giving the same error :(
Are you using forward slashes instead of backslashes? The docs
indicate that's necessary...
>
>
>
>
>
> On Dec 2, 11:38 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
>> On Mon, 2008-12-0
I did as you said. Still its giving the same error :(
On Dec 2, 11:38 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-12-01 at 22:20 -0800, Vicky wrote:
> > I tried the code below:
>
> > from django.template import loader, Context
>
> > def NewspaperSelect(request,u_id):
> >
On Mon, 2008-12-01 at 22:20 -0800, Vicky wrote:
> 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 })
>
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
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
>
> >
--~--~-~--~~~---~--~---
Can we use XML files as templates instead of HTML?
--~--~-~--~~~---~--~~
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 grou
7 matches
Mail list logo