Django Deployment Running Django application with Gunicorn

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!


  1. Install gunicorn

    pip install gunicorn

  1. From django project folder (same folder where resides), run the following command to run current django project with gunicorn

    gunicorn [projectname].wsgi:application -b[port number]

    You can use the --env option to set the path to load the settings

    gunicorn --env DJANGO_SETTINGS_MODULE=[projectname].settings [projectname].wsgi

    or run as daemon process using -D option

  1. Upon successful start of gunicorn, the following lines will appear in console

    Starting gunicorn 19.5.0

    Listening at:[port number] ([pid])

    .... (other additional information about gunicorn server)

Got any Django Question?