Skip to main content

Data seeding package

Project description

Django Seeding Data

Django Seeding Data is Django app for seeding data in existing DB.

Quick start

  1. Add "django_seeding_data" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = ( ... 'seeding', )

  2. Add "SEEDING_DIR" to your settings.py file like this::

    SEEDING_DIR = "mainapp/seeding/"

  3. Run python manage.py seeding create to create new seeding file in path from previous instruction.

  4. Write some seeding code in method seeding from class Seeding, for create superuser, or add new groups.

  5. Run python manage.py seeding seed to apply new seeding files that was never applied on this DB instance.

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-seeding-data-0.1.1.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file django-seeding-data-0.1.1.tar.gz.

File metadata

  • Download URL: django-seeding-data-0.1.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.10

File hashes

Hashes for django-seeding-data-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5e011bb9a15b659670bad7c223c0fe352b8d28640cfdfdec2269347a5547484f
MD5 65cf9fbe2b0e1a59bac50a36e160fde4
BLAKE2b-256 dcdfb57dfbe41cd7f68af2556428f5e92e9ff2ca1e085576250053db54750698

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page