Data seeding package
Project description
Django Seeding Data
Django Seeding Data is Django app for seeding data in existing DB.
Quick start
-
Add "django_seeding_data" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = ( ... 'seeding', )
-
Add "SEEDING_DIR" to your settings.py file like this::
SEEDING_DIR = "mainapp/seeding/"
-
Run
python manage.py seeding create
to create new seeding file in path from previous instruction. -
Write some seeding code in method
seeding
from classSeeding
, for create superuser, or add new groups. -
Run
python manage.py seeding seed
to apply new seeding files that was never applied on this DB instance.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-seeding-data-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e011bb9a15b659670bad7c223c0fe352b8d28640cfdfdec2269347a5547484f |
|
MD5 | 65cf9fbe2b0e1a59bac50a36e160fde4 |
|
BLAKE2b-256 | dcdfb57dfbe41cd7f68af2556428f5e92e9ff2ca1e085576250053db54750698 |