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||File type||Python version||Upload date||Hashes|
|Filename, size django_pyuwsgi-1.0.0-py2.py3-none-any.whl (4.3 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size django-pyuwsgi-1.0.0.tar.gz (2.9 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for django_pyuwsgi-1.0.0-py2.py3-none-any.whl