From the course: Deploying Django Apps: Make Your Site Go Live

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

NGINX setup

NGINX setup

From the course: Deploying Django Apps: Make Your Site Go Live

Start my 1-month free trial

NGINX setup

- [Nick Walter] The next step in our project deployment, is to utilize something called, NGINX. Now NGINX is a web server that's going to handle all of our web traffic, and pass it to the appropriate places. So simply put it's going to pass some of the requests, over to Gunicorn, to process back some files but, anytime the users looking for some sort of media, it's going to pass it either to our static folder, or our media folder. So now that we're running in production environment, we need to edit our settings, so that it reflects that. So we're going to go ahead and type out, nano, portfolio dash settings, edit the settings file, and we're just going to scroll down and change our debug, from true, to false. So make sure you got the capital false there, do control X, Y, hit enter on that. Now that we've done that we can go ahead and properly set up NGINX. So what we need to do is move back over to our guide, and we'll scroll down here, and we need to copy this line of code. So we…

Contents