Skip to main content

Runs processes along with runserver

Project description

django_runprocess

This app allows you to run external applications along with the runserver command. This is useful for example to run automatic compilation of your sass/less files without having to manually run sass --watch.

Installation

pip install django_runprocess

Configuration

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'runprocess'
)

Add the commands you want to be executed in the RUNPROCESS_PROCESSES setting. For example, to automatically run sass --watch along with runserver, use the following:

SASS_DIR = os.path.join(STATIC_ROOT, 'sass')
CSS_DIR = os.path.join(STATIC_ROOT, 'css')

RUNPROCESS_PROCESSES = (
    ('sass', '--watch', '%s:%s' % (SASS_DIR, CSS_DIR)),
)

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_runprocess-0.1.0.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file django_runprocess-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django_runprocess-0.1.0.tar.gz
Algorithm Hash digest
SHA256 364013e34f27e408623755414073949dbf4c2b22117542b20e8ef9e4a8af5dfc
MD5 794f8e19be711c0c0e309eaf655535b3
BLAKE2b-256 b5e95307dd70574c88a2ae04a3441c8f3b97f1337545995339fed25d09707c3b

See more details on using hashes here.

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