Skip to main content

Run custom python script directly with a Django command.

Project description

This is simple Django command to run a custom python script with Django settings loaded and environment setup.

To install this package

pip install django_rundirect

To integrate this package into a django project, add _’django_rundirect’_ to Django’s INSTALLED_APPS.

Then you can run a python script as:

python manage.py rundirect SCRIPT.py

You may pass args and options to the custom script, for example:

python manage.py rundirect SCRIPT.py some_arg –some_option=somevalue

Note that the sys.path will include the path of manage.py(or where you run the python executable).

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_rundirect-0.1.1.tar.gz (1.7 kB view hashes)

Uploaded Source

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