How to fix RuntimeError: Working outside of application context in Python | DevErrors