uWSGI as a Django management command
Project description
django-pyuwsgi
Run pyuwsgi (aka uWSGI) as a Django management command.
Usage
-
Install:
pip install django-pyuwsgi
-
Add to
INSTALLED_APPS
:INSTALLED_APPS = [ # ... "django_pyuwsgi", # ... ]
-
Run:
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.
Motivation
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_pyuwsgi-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8fbd30d05f3ce224558320387cdadd4f6e05916e8d2b7d1fa305d1695418dc0 |
|
MD5 | 2c3b8c28e6684f445008a1e78c258e8f |
|
BLAKE2b-256 | e9ba5a533f509f0981cb54cfa0cc9d27a62cb70d2d4afcfcbd378d36eac61a68 |