There is a management command `findstatic` that does the heavy lifting already! https://docs.djangoproject.com/en/4.0/ref/contrib/staticfiles/#django-admin-findstatic