1👍
✅
The idea is to use the Web server to handle requests for static files and not pass those through to your Django instance. The reason for that is that Web servers, unlike your Django application, are optimized for delivering static content.
The only thing you really need to do is configure your Web server to handle requests that match the path of your STATIC_URL
and MEDIA_URL
by setting the document root for those requests to the location where your static and media files are stored by your application.
Source:stackexchange.com