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
File details
Details for the file django-pyuwsgi-1.0.0.tar.gz
.
File metadata
- Download URL: django-pyuwsgi-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e58b41127772c71e90e5703503967cfa4f9c9b8ef08754f1d20ab1cd49aca105 |
|
MD5 | 302d79734c19754f2a200cbc5c383c92 |
|
BLAKE2b-256 | c1f3f2c3cc880b3d6794633bae509ce14d05edaaba2abb9c9f93711506f0c514 |
Provenance
File details
Details for the file django_pyuwsgi-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_pyuwsgi-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8fbd30d05f3ce224558320387cdadd4f6e05916e8d2b7d1fa305d1695418dc0 |
|
MD5 | 2c3b8c28e6684f445008a1e78c258e8f |
|
BLAKE2b-256 | e9ba5a533f509f0981cb54cfa0cc9d27a62cb70d2d4afcfcbd378d36eac61a68 |