More tips and tricks

psycopg2 mx.DateTime issue quick fix
If you ever get the dreaded mx.DateTime psycopg2 error when running django tests, (this is for psycopg2 == 2.4.1) this is because when you’re in a virtualenv the python mx libraries don’t transfer over
some reason. the quick fix is to pip install egenix-mx-base and you should be good to go. for reference latest versions of psycopg2 seem to have an issue with transaction commits during unit tests, for now i’m running psycopg2==2.4.1, anything newer runs into the autocommit issue for unit tests.
good postgresql required reading
http://thebuild.com/presentations/not-your-job.pdf
I’m going to add this to the printing.py file in the dimagi-utils project:
Share
Tags
Similar Articles
Another day, another Zero Day: What all Digital Development organizations should take away from recent IT security news
Even if you don’t work as a software developer, you probably heard about recent, high profile security issues that had IT Admins and developers frantically patching servers over the holidays and again more recently. Dimagi's CTO shares what these recent issues mean for Digital Development organizations.
Technology
January 28, 2022
Join the fight to support critical open source infrastructure
Open Source tools are a critical piece of global infrastructure, and need champions for long term investment
Technology
March 17, 2020
Two big lessons that Iowa and Geneva can teach us about technology in digital development
Last week brought two high profile technology failures into the global spotlight. Although these two mishaps may seem quite different at first glance, they both highlight challenges that are inherent in providing software in the public sector (regardless of locale) and illustrate cautionary lessons worth discussing for practitioners in Digital Development. The Iowa Caucus Debacle
Technology
February 7, 2020