You can use request.now, that is a default datetime.datetime object..

e.g. (paste this on the view)
....
<p> month: {{=request.now.month}} </p>
<p> day : {{=request.now.day}} </p>
...



On 14 Giu, 00:32, Giuseppe Luca Scrofani <[email protected]> wrote:
> Hi, how I can insert in a page not served by a controller (think
> layout.html in the welcome application) current day and month?
>
> I've tested something like this {{import datetime;
> datetime.datetime.now()}} but even if this worked it will be horrible
> (import datetime every single page load...)

Reply via email to