Login

Snippets by sandinmyjoints_

Snippet List

Simple Django event calendar template tag

I wanted a simple way to display events for a given month in a calendar, so I adapted some code to write a template tag. `Event` is the model class, and it needs to have a `date_and_time` field. Each event is part of a `Series`, so in the view you can filter events by which series, or display events for all known Series. [Full explanation and description of simple Django event calendar template tag](http://williamjohnbert.com/2011/06/django-event-calendar-for-a-django-beginner/).

  • calendar
  • event-calendar
  • htmlcalendar
Read More

sandinmyjoints_ has posted 1 snippet.