gunicorn django static files
Install Gunicorn: Gunicorn can be installed using pip with the command "pip install gunicorn".
Create a Gunicorn configuration file: This file should be created in the project directory with the name "gunicorn.conf.py". It should contain the configuration settings for Gunicorn.
Configure Gunicorn settings: Inside the "gunicorn.conf.py" file, configure the settings such as the number of workers, binding host, and port number.
Collect static files: Use the command "python manage.py collectstatic" to collect all static files into the directory specified in the STATIC_ROOT setting.
Configure Nginx to serve static files: In the Nginx configuration, add a location block to serve the static files directly.
Restart Gunicorn and Nginx: After making changes to the Gunicorn configuration and Nginx, restart both services to apply the changes.