Set up app context for sending emails from console.py