django-saveall
custom django-admin command for saving model instances throughout a project
Requirements:
Python == 2.7
django == 1.7.7 to 1.8.11
How to install:
Run pip install django-saveall;
Add 'saveall' to INSTALLED_APPS inside your settings.py
How to use:
You can call the command using python manage.py saveall <app.Model> or python manage.py saveall --<option> <args>;
Options available:
--app <app_name>: accepts multiple arguments, saves all instances from all models inside specific app(s);
--all: accepts no arguments, saves all instances from all models inside project;
Saving instances from specific models:
By default, the command accepts as argument the path of the model you want the instances to be saved. e.g.:
python manage.py saveall app01.Model01
It accepts multiple paths as well:
python manage.py saveall app01.Model01 app02.Model02 app03.Model03
Saving instances from all models inside an app:
Using the --app option, the command will accept as argument solely the name of the app, and will save every instance from every model:
python manage.py saveall --app app01
It accepts multiple apps as well:
python manage.py saveall --app app01 app02 app03
Saving all instances from all models inside a project:
Using the --all option, the command will get every instance from every model inside the whole project and save it. It does not accept arguments.
python manage.py saveall --all
Metadata
Release files for django-saveall 0.1.5
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 | Actions |
|---|---|---|---|---|
| django-saveall-0.1.5.tar.gz | 6.6 kB | Without provenance | Details for django-saveall-0.1.5.tar.gz |
Release files / django-saveall-0.1.5.tar.gz
| Download URL | django-saveall-0.1.5.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4856d101cd58fc5595891b78a52fc3531c6d49305a39508cd92fa568e23f027f
|
|
BLAKE2b-256 checksum How to use checksums |
d03164ab3dc63383b84ae36540cacc7f733b922490e0b1b4a4e773e733161c35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-saveall 0.1.5
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.