Skip to main content

A data seeder for models for Django.

Project description

This app provides a simple way of seeding data for your data models into your development or test database. This can be achieved through the Admin site, via a management command, or by writing your own scripts that use a seeder object.

It is often necessary to be able to seed large datasets, especially in complex projects, where having pre-loaded data can save time in the development lifecycle. Additionally, by allowing simple data seeding, you can more effectively conduct load tests or test complex edge case scnearios.

Requirements

  • Django 2.2+
  • Python 3.6+

Installation

You can install data_seeder using pip

pip install django-data-seeder

Quick Start

  1. Add data_seeder to your INSTALLED_APPS in settings.py

    INSTALLED_APPS = [
      ...
    
      'data_seeder',
    ]
    
  2. Seed data with the following command

    python manage.py seeddata [options] app.models.Model [app.models.Model2, ...]
    

    This will generate a single seed for each model provided.

Project details


Download files

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

Files for django-data-seeder, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django_data_seeder-0.1.0-py3-none-any.whl (10.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size django-data-seeder-0.1.0.tar.gz (8.2 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page