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


Release history Release notifications

Download files

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

Files for django_runprocess, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django_runprocess-0.1.0.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page