Dec. 5, 2023, 9:14 p.m. | Srikanth

DEV Community dev.to

I have ran the python manage.py makemigrations command several hundreds of times. Recently I had a surge of curiousity to find out how does django detect changes and generate migration files for an app.


I needed many answers but one of the first question I had was "How does Django keep track of my model classes?"


In Django, the creation of model classes is fundamental to mapping your application's data model to a database. These model classes inherit from Django's …

app command django files generate migration opensource programming python

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US