Notepad

Just like a blog, but less frequent/topical. Here are some notes:

Django: table space per app

To place app models in different table spaces in MySQL, use full quoted name: `app`.`table` in the model's db_column.

Testing django apps

If you have multiple table spaces (e.g., one table space for an app on the same database server), you will have problems using the standard Django test framework. User a custom test runner that does not create a database. Instead, use a system variable to decide what database to connect to. You can run multiple databases on the same host (with a different port) and use one for development, and the other one for unit testing.