Welcome @rye-dotcom !
In a production environment, Django shouldn’t be used at all to retrieve either static or media files.
Your nginx configuration should serve the media directory directly.
Also, both STATIC_ROOT and MEDIA_ROOT should be completely outside your project directory. They should be “nginx-friendly” directories, such as under /var/www/.
Similarly, your code should not be anywhere in that same directory tree. You do not want nginx to have direct access to your code.
There have been numerous topics here about deployment of static and media files - see Django Static Files issue with Nginx as one example. (There are many others you could find.)