I am creating a Juju charm to encompass many Django development projects. I have the charm installing Django, wsgi, and Apache2. Django uses a separate database, user, and password for every project created. How do I provide these credentials to the charm when the mysql charm has only one set of database credentials? I would like to parse the python paths for all installed Django projects and have a mysql charm ready to use with them.
As you can see below, the user will have to set these manually and change them when a new/different Django project is deployed to the cloud.
user=`relation-get user`
password=`relation-get password`
host=`relation-get host`
database=`relation-get database`
My question: Do I need to create a bash script to auto-create mysql charms with a correlating name to the Django project?