Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A simple Django app that adds a custom django-admin command for saving model instances throughout a project.

Project Description

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
Release History

Release History

This version
History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-saveall-0.1.5.tar.gz (6.6 kB) Copy SHA256 Checksum SHA256 Source Mar 15, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting