uWSGI as a Django management command
Run pyuwsgi (aka uWSGI) as a Django management command.
pip install django-pyuwsgi
INSTALLED_APPS = [ # ... "django_pyuwsgi", # ... ]
manage.py pyuwsgi --socket=:8000 ...
Don't worry about setting the module you want to run or virtualenv/home, that will already be handled for you via the
WSGI_APPLICATION setting and your current Python interpreter. If you've configured your static files to be served from a local URL, they'll be setup too.
In some scenarios, it is beneficial to distribute a Django project with a single entrypoint for command-line interaction. This can come in handy when building Docker containers or self-contained Python apps with something like shiv.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|django_pyuwsgi-1.0.0-py2.py3-none-any.whl (4.3 kB) Copy SHA256 hash SHA256||Wheel||py2.py3||Sep 11, 2018|
|django-pyuwsgi-1.0.0.tar.gz (2.9 kB) Copy SHA256 hash SHA256||Source||None||Sep 11, 2018|