Re: Retrieving recurring events using Django queries

2014-09-19 Thread Derek Rodger
Take a look at: https://github.com/llazzaro/django-scheduler also available on PyPI: pypi.python.org/pypi/django-scheduler/ It's very similar to what you have done so far. It handles virtual events ('occurrences') by generating them on the fly for a requested date range. Individual occurrences

Re: Retrieving recurring events using Django queries

2014-09-19 Thread Sanjay Bhangar
hey Stodge, Interesting question :) My guess is there are probably a number of approaches one can take. Of course, processing all your entries in python "on the fly" would probably get to be quite an intensive operation. One possible idea maybe to create a "cache" table of sorts where you pre-ca

Retrieving recurring events using Django queries

2014-09-19 Thread Stodge
I have the following to model a calendar entry (recurring event). I need the ability to retrieve all events from the database between a start and end date. This has to include one off events and also recurring "virtual" events that occur because of an event in the database. Do you think this is