I use PyCharm for Django development, with my database host being driven by an environment variable. When working on the command line outside of PyCharm, I have a script that determines the available database hosts and gives me a list to select from. Typically I keep a PyCharm-managed Debug runserver operation running for my local testing and development.
As of now, whenever I want to change the targeted database, I update my fish configuration file with the relevant environment variable value, and restart PyCharm. I was wondering what better options there might be, such as a way to apply my command-line selection script from inside PyCharm to the whole PyCharm environment.