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.

Gunicorn testing

Gunicorn testing

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

Start my 1-month free trial

Gunicorn testing

- So we currently are serving up our project via the run server command built into Django. Now this is not ideal, there's more efficient servers out there. And one of those is Gunicorn. Now we already installed the code for via Pip but we need to test it out and see if we can work with it. So go ahead and hit control C, so that you stop you server from running. And then, let's go ahead and specify that we want to run our site via Gunicorn. Now in order to do this, I'm just going to type Gunicorn. Should be able to auto complete that. Gunicorn. There we go. Dash, Dash, bind. And then space, we're going to do the same zero point zero point zero point, zero. colon, eight thousand. And then we're going to' specify portfolio dot W S G I. So go ahead and hit enter on this. We should be able to go back to our browser and re-load the same page and everything still should be working. Looks like it is that's good. And then you'll see when we come back to the terminal, that everything's still…

Contents