Have a look at the below link
http://journal.uggedal.com/creating-a-flexible-monthly-calendar-in-django

This may help you in solving your problem.



On May 22, 12:12 pm, laspal <amit.las...@gmail.com> wrote:
> Hi,
> My DB looks lie:
>
>     id
> date                                           msg
>     20                    11-2-09
> abcd
>     20                    15-2-09
> abcd
>     20
> 20-2-09                                       abcd
>     20
> 1-3-09                                        abcd
>     20
> 5-3-09                                        abcd
>
> SO I have to show the list in calendar format.
> How can i implement it.
>
> I get the current date and time .
> then store the date for that month in list.
> Then iterate over the date list and get user_status_list for that
> month.
> user_status_list = UserStatus.objects.filter(id = 20,time__gte =
> date1, time__lte = date2)
>
> so my problem is how to add previous month last date in the date list.
> like example:
>    for month of may.
> so my date list will be ( 30-04-09, 1-05-09,
> 31-05-09)
> Is this the correct way to implement this.
> how can I implement this.
>
> 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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to