Is sqlparse required and if yes, how do you install it?
The solution was simple.
pip install sqlparse
I added sqlparse to requirements.txt in the MySQL project.
I checked if sqlparse was installed in the project that did not require it and it wasn't installed. I'm not sure why one project required it and one did not but the resolution of the issue was to just install sqlparse via pip.