Thanks, that solved the problem.
The example in the Django documents is somewhat misleading as they
first present a get_template example (to show the difference), which
I've mistaken for select_template.
On Apr 8, 9:01 am, Russell Keith-Magee
wrote:
> Hi,
>
> loader.select_template() is expecti
Thanks, that solved the problem.
On a side note this means there is a bug in the Django documentations
as this was the example they were giving :
get_template('story_detail.html') (at
https://docs.djangoproject.com/en/dev/ref/templates/api/)
I will open a ticket about this
On Apr 8, 9:01 am, Ru
Hi,
loader.select_template() is expecting a list of values, and you're providing a
single value. However, Django interprets a string as a list of strings (each
one character long), so it doesn't raise an error due to the type of the data;
it only raises an error because the single-letter filena
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 wrote:
> The sentence loader.select_template("test.html') renders with a
> whitespace between h and tml on
I tried to retyped the template name (I'm using sublime text 2) with
the same results.
I've also tried editing the file in BBEdit and can't see any odd
characters in there.
On Apr 8, 8:01 am, Ejah wrote:
> The sentence loader.select_template("test.html') renders with a
> whitespace between h and
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 wrote:
> Hi,
>
> I'm receiving some odd results while playin
6 matches
Mail list logo