About Django Code Statistics

To get the total amount of apps and models in a project, you can do this in the Django shell:

1
2
3
from django.apps import apps
print("Installed apps: ", len(apps.get_app_configs()))
print("Models: ", len(apps.get_models()))

Tips and Tricks Architecture Django 3.2 Django 2.2 Django 1.11 Django 1.8