Skip to main content

uWSGI as a Django management command

Project description

django-pyuwsgi

Run pyuwsgi (aka uWSGI) as a Django management command.


build status

Usage

  1. Install:

    pip install django-pyuwsgi
    
  2. Add to INSTALLED_APPS:

    INSTALLED_APPS = [
       # ...
       "django_pyuwsgi",
       # ...
    ]
    
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-pyuwsgi-1.0.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

django_pyuwsgi-1.0.0-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page