Throughout this book, you have been using the Django development server to run projects in your local environment. However, you need a real web server for deploying your application in a production environment.
uWSGI is an extremely fast Python application server. It communicates with your Python application using the WSGI specification. uWSGI translates web requests into a format that your Django project can process.
Install uWSGI using the following command:
pip install uwsgi==2.0.17
In order to build uWSGI, you will need a C compiler, such as gcc or clang. In a Linux environment you can install it with the command apt-get install build-essential.
If you are using macOS X, you can install uWSGI with the Homebrew package ...