[Answered ]-How to track the time Django takes to run migrations? 11 December 2023 by thecoderscamp.com 2👍 This seems to be a job for cProfile. You can write a tiny script that runs the migration while wrapping the call in cProfile.run() You should also check out SnakeViz. This tool helps a lot for profiling your program. 👤Morreski [Answered ]-Pass data from template to view in Django Source:stackexchange.com