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

Unlock the full course today

Join today to access over 22,500 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

- [Instructor] We're getting very close to having our project ready to shine on port eighty, which is the main web port, you'll see that in just a second here. So, since we're so close, we got to change from a debug environment to a production environment. So to do that, we're going to do a nano portfolio/settings, and let's just scroll down to our DEBUG option here and set that equal to False. Great. Now, with that change, we'll do Control + X, Yes. Let's save that. All right, now that we've done that, we have to get Nginx set up. And what Nginx is, is it's also a web server that we'll pass information either to Gunicorn, say, hey, I need you to spit back some sort of view or something like that, or it'll spit back some of our static or media files. So, let's go ahead and go back to the guide here. They have the great documentation to be able to get this up and running. Let's scroll down a bit here. Okay, and we're going to copy this line of code, but everything except for the red…

Contents