Install
pip install django-sample-data-generator
Usage
Settings
INSTALLED_APPS = (
# ...
'django_sample_generator',
)
SAMPLE_DATA_GENERATORS = (
'blog.generators',
)
Example
# blog/generators.py
from django_sample_generator import generator
from .models import Blog
class BlogGenerator(generator.ModelGenerator):
class Meta:
model = Blog
generators = [
BlogGenerator(10), # 10 blogs
]
python manage.py create_sample_data
Metadata
Release files for django-sample-data-generator 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-sample-data-generator-1.0.5.tar.gz | 102.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_sample_data_generator-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 193.7 kB
Release files / django-sample-data-generator-1.0.5.tar.gz
| Download URL | django-sample-data-generator-1.0.5.tar.gz |
|---|---|
| Size | 102.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dac0868d4fc0848fb04c47f90f539d56ac7d51e29c5d9650146400e2b547f47a
|
|
BLAKE2b-256 checksum How to use checksums |
fa675c688b53420b351c5e4ce70d44d2461f7693ff7730334e6f4451cdfc5f76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.13
|
Release files / django_sample_data_generator-1.0.5-py3-none-any.whl
| Download URL | django_sample_data_generator-1.0.5-py3-none-any.whl |
|---|---|
| Size | 90.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19abed3239b29e93fe4565253a7302d7a5af130346877fbeb22df1a903886bb5
|
|
BLAKE2b-256 checksum How to use checksums |
4d061fde99dc94ea4b81d986b806f0b7730e0c0b36e272234883e25d1154dac8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.13
|
Security for django-sample-data-generator 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.