I build software with Python, Django, ReactJS & React-Native. Every day. All day long.

Django GFKs & Factory Boy 

Test Models with Generic Foreign Keys and Factory Boy

Let's say you are writing a reusable Django app and your app has a model with a generic foreign key. An example could be a messaging app where messages can attached to any other object (when you think about Facebook, a message can be sent to another User, or ...

InnoDB vs. MyISAM 

MySQL InnoDB vs. MyISAM and the foreign key constraint of death

During the last few months I constantly ran into problems with MySQL which drove me crazy and I finally decided to use PostgreSQL for all new projects. Today I figured out what was going on:

On my development machine I have MySQL version 5.1.61 installed. Recent Webfaction servers ...