How to Solve NameError: name 'register_models' is not defined -- django
Solution: Import the 'register_models' module
# Add the following line to the top of your code
from django.db.models.loading import register_models
For more information:
django register_models