Answer the question
In order to leave comments, you need to log in
How to display a calendar in Django?
How to display a calendar in Django?
import calendar
c = calendar.Calendar()
produces this calendar.Calendar object at 0x000000D8D6DCAF98 how to display it correctly?
Answer the question
In order to leave comments, you need to log in
More or less like this:
import calendar
from datetime import datetime
c = calendar.HTMLCalendar()
html_out = c.formatmonth(datetime.today().year, datetime.today().month)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question