To summarise, WSGIImportScript was using application-group=maas. Changing it to application-group=%{GLOBAL} resolved the issue.
-- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to pymongo in Ubuntu. https://bugs.launchpad.net/bugs/1237615 Title: python-bson-ext does not encode binary in Apache with mod_wsgi To manage notifications about this bug go to: https://bugs.launchpad.net/maas/+bug/1237615/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs