This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| class A(models.Model): | |
| things = models.ManyToManyField("B", through=ThroughModel) | |
| class B(models.Model): | |
| text = models.TextField() | |
| class ThroughModel(models.Model): | |
| a = models.ForeignKey(A) | |
| b = models.ForeignKey(B) | |
| extra = models.BooleanField() |