Mayank
·
Jan 10, 2013
·
Viewed 73.9k times
·
Source
I am pulling a name from a database which is stored as myname. How do I display this inside a Django template as Myname, with the first letter being in uppercase.
Say I have a template
<html>
<div>Hello {{name}}!</div>
</html>
While testing it, it would be useful to define the value of the variable without touching the python code that invokes …
I have the following for loop in my django template displaying days. I wonder, whether it's possible to iterate a number (in the below case i) in a loop. Or do I have to store it in the database and …