Settings in a separate file. Simplify by creating app factory. Try but fail to get python-social-auth to work.