When trying to use SqlLite3 as the DB backend to Django, I'd like to be able to use SqLite's Foreign Key support. According to http://www.sqlite.org/foreignkeys.html, you can enable foreign key support by running:
PRAGMA foreign_keys = ON;
This support is disabled by default, and would be desirable while running most db dependent tests. How would one control this feature while using Django test framework? Can you send backend-specific commands in your setUp/tearDown methods? Would you rather specify this option in connection settings ('DATABASE = ' settings) globally?