Fractal Ideas

Blog

Oct. 14, 2019 10 min read

Managing multiple geographies and time zones in Django - part 2

Last month, I demonstrated how to handle geographies in a Django app, so that:

  • users can only interact with objects attached to their geography;
  • users see datetimes in the local time zone of their geography.

This is an example of multi-tenancy: each geography is a tenant.

Then I had an uncommon requirement: let a user account interact with several geographies. It’s interesting because it doesn’t fit into the data model …

Read more  →

Sept. 12, 2019 7 min read

Managing multiple geographies and time zones in Django

“Oh, I’ll just write a small Django app…”

For the last couple years, I’ve been building and maintaining a Django application to manage mobile push notification campaigns for myCANAL.

The first push notification ever on myCANAL

Through the Django admin, campaign managers define their messages and schedule campaigns targeted at user segments. A handful of cron jobs take care of importing segments from our data lake and sending campaigns via mobile push notification APIs.

At this point, Python glues …

Read more  →

django (5) react (3) multitenancy (2) timezone (2)