---
title: "Mounir Messelmeni (@mounir) | Hashnode"
description: "Software Architect. Read the latest articles by Mounir Messelmeni on Hashnode."
url: "https://hashnode.com/@mounir"
---

@mounir

# Mounir Messelmeni

@mounir · Stuttgart, Germany · Joined April 2021

Software Architect

## Comments

[Nice article! I don't really embrace running makemigrations inside the container and then migrate, if a developer for whatever reason remove a model or a model field this is going to be destructive! Making migrations should be part of the developer's task and generated migrations files should go into review before deploying a new version of the software. It's a good practice to have ./manage.py makemigrations --check into your CI step too to avoid forgetting about migrations files. For k8s users, initcontainers or k8s jobs could be a better place to run migrate command (If using ArgoCD presync hooks are even better).](https://hashnode.com/posts/the-near-perfect-dockerfile-for-django-applications/6267ee833033e09ae73ebfbe/comment/63603c919d2c7c624f6997dd)

Comment · Article · Oct 31, 2022 · [The (near) Perfect Dockerfile for Django Applications](https://hashnode.com/posts/the-near-perfect-dockerfile-for-django-applications/6267ee833033e09ae73ebfbe)
