How to containerize a Django App properly?

I have sucessfully developed a Django App. However, i made some changes to the admin-panel and actually I can only successfully deploy the App in my tes-environment when I migrate the base-"makemgrations" and copy afterwards the changed migrations files for admin panel and so on and repeat the 'migrate' command afterwards. Reason is clear: in first migrate-command, there are no database fields to accept the changes i made. But how can I put this in a Docker-Containerized package for distributionwithout this issue?

Вернуться на верх