[Tutor] Calendar

Sander Sweers sander.sweers at gmail.com
Mon Sep 12 23:21:34 CEST 2011


On 12/09/11 21:15, nitin chandra wrote:
> I need to create a calendar with python&  CSS for the web page, in the
> following format
>
>                            Dec , 2011
> -------------------------------------------------------------------------------------------------
> sun  |   mon  |   tue  |  wed thu fri sat sun mon tue  wed  thu  fri  sat  sun
> -------|-----------|----------|----------------------------------------------------------------------
> 1     |     2     |   3     | 4    5   6   7    8    9     10   11
> 12   13  14   15
> -------|-----------|----------|-----------------------------------------------------------------------
> img1 |  img2 |  img3 | ....
>
>                            Jan , 2012
> -------------------------------------------------------------------------------------------------
> sun  |   mon  |   tue  |  wed thu fri sat sun mon tue  wed  thu  fri  sat  sun
> -------|-----------|----------|----------------------------------------------------------------------
> 1     |     2     |   3     | 4    5   6   7    8    9     10   11
> 12   13  14   15
> -------|-----------|----------|-----------------------------------------------------------------------
> img1 |  img2 |  img3 | ....
>
>                            Feb , 2012
> -------------------------------------------------------------------------------------------------
> sun  |   mon  |   tue  |  wed thu fri sat sun mon tue  wed  thu  fri  sat  sun
> -------|-----------|----------|----------------------------------------------------------------------
> 1     |     2     |   3     | 4    5   6   7    8    9     10   11
> 12   13  14   15
> -------|-----------|----------|-----------------------------------------------------------------------
> img1 |  img2 |  img3 | ....
>
>
> Can some one please show me how to do the above ?

Have a look at the calendar module.

A quick google search I also found [1] which does all the bits you just 
need to adapt it for your needs.

Greets
Sander


More information about the Tutor mailing list