Re: loader.select_template breaks template name
I've retyped the template name but I'm still getting the same results.
I'm using Sublime Text 2 (also tried BBEdit) and I can't see any odd
characters in the document
On Apr 8, 8:01 am, Ejah <ej.huijb...@gmail.com> wrote:
> The sentence loader.select_template("test.html') renders with a
> whitespace between h and tml on my screen. I suggest you retype the
> template name from scratch. There might be some odd character out of
> place.
> Hth
>
> On 7 apr, 22:01, gnesher <nesher....@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I'm receiving some odd results while playing with select_template
> > (Django 1.4)
>
> > I'm calling the following code in my view:
> > loader.select_template('test.html')
>
> > Which results in the following error:
>
> > TemplateDoesNotExist at /test
> > t, e, s, ., h, m, l
>
> > Can't really figure out what I'm doing wrong as this should be rather
> > straightforward.
>
> > Thanks
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home