Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Django utilities for publishing events as a calendar

Project description


.. image::

.. image::

.. image::

.. image::

.. image::

.. image::

Provides utilities for publishing events as a calendar.

At the moment, it just provides a visual calendar (both large and small)
showing which days have events and optionally linking to a day detail page.



{% load pinax_calendars_tags %}


{% calendar events %}

where ``events`` implements the following protocol:

``events.day_url(year, month, day, has_event, **kwargs)``
return a link to the page for the given day or None if there is not to
be a day link. ``has_event`` is a boolean telling this method whether
there is an event on the day or not so you can choose whether a day
without an event should link or not.

``events.month_url(year, month, **kwargs)``
return a link to the page for the given month or None if there is not
to be a month link.

``events_by_day(year, month, **kwargs)``
return a dictionary mapping day number to a list of events on that day.

Note that all methods take additional key-word arguments that can be used in
the calculation of the return value.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pinax-calendars, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size pinax_calendars-0.6-py2.py3-none-any.whl (7.9 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size pinax-calendars-0.6.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page