This is simple Django command to run a custom Python script(or a single line of Python code) with Django settings loaded and environment setup. So you need not put any Django settings related code in your script.
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
You may run a single line of Python code, for example(like running python -c):
python manage.py runline "from django.contrib.auth.models import User;print User.objects.count()"
Note that the sys.path will include the path of manage.py(or where you run the python executable).
Metadata
Release files for django_rundirect 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_rundirect-0.3.0.tar.gz | 2.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_rundirect-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 7.4 kB
Release files / django_rundirect-0.3.0.tar.gz
| Download URL | django_rundirect-0.3.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0eec957addaf31be65896fa96d4955de5c8c499952343b9922002db530fc531a
|
|
BLAKE2b-256 checksum How to use checksums |
4f6f79d2dafdc5067a4099a0593f48a5b79360805f12c80cb5761804dd58a585
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_rundirect-0.3.0-py2.py3-none-any.whl
| Download URL | django_rundirect-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
fe4bd7c3f43df30cce28617bcbe8c4e9fc4820e92ca9d182f9f42174fe69e538
|
|
BLAKE2b-256 checksum How to use checksums |
d3669af500bde2472128aa62ddbdfcabffe6555f19c51d22e380923ecf98262a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django_rundirect 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.