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 createto create new seeding file in path from previous instruction. -
Write some seeding code in method
seedingfrom classSeeding, for create superuser, or add new groups. -
Run
python manage.py seeding seedto 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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e011bb9a15b659670bad7c223c0fe352b8d28640cfdfdec2269347a5547484f
|
|
| MD5 |
65cf9fbe2b0e1a59bac50a36e160fde4
|
|
| BLAKE2b-256 |
dcdfb57dfbe41cd7f68af2556428f5e92e9ff2ca1e085576250053db54750698
|