Use tests.settings in manage.py
Set MIDDLEWARE_CLASSES setting explicitly in order to avoid django warning.
Use AppConfig for otree.session
Make ModelWithVars.vars default value be not a lambda function. Otherwise it won't be serializable by django's migration framework.
Adding migrations for otree and otree.session apps.