Nov 29

Speed up Django testing with sqlite

Using MySql default ISAM storage type for testing in Django can be slow. To use sqlite in memory database with transactions support add this code to the end of settings.py:

if 'test' in sys.argv:
	DATABASES = {
			'default': {'ENGINE': 'django.db.backends.sqlite3'}
			}