Plugin to generate the lorem ipsum for django model
Project description
Plugin to generate the lorem ipsum for django model
Install
Djipsum is available directly from PyPI:
$ pip install djipsum
*). And don’t forget to add djipsum to your INSTALLED_APPS setting (without migrations).
Requirement
Django>=1.10.1
I never test this tool with Django<=1.9.9, but i think it should be work well.. you can try with this to ignoring the requirment:
$ pip install djipsum --no-dependencies
Usage
usage: manage.py djipsum [-h] [-dv] [--app APP] [--model MODEL] [--max MAX] To generate awesome lorem ipsum for your model class! optional arguments: -h, --help show this help message and exit -dv, --djipsum_version Show djipsum version and exit. --app APP The APP name. --model MODEL The Model Class name. --max int(MAX) Maximum generate lorem ipsum.
Example
# Default 10 objects $ ./manage.py djipsum --app testapp --model TestField # Custom Maximum objects $ ./manage.py djipsum --app testapp --model TestField --max=5
Supported Fields
Char Types |
Integer/Float Types |
Relationship Types |
Other Types |
---|---|---|---|
CharField |
IntegerField |
ForeignKey |
BinaryField |
TextField |
SmallIntegerField |
ManyToManyField |
DurationField |
EmailField |
BigIntegerField |
OneToOneField (not yet) |
BooleanField |
SlugField |
DecimalField |
OneToManyField (not yet) |
NullBooleanField |
URLField |
PositiveIntegerField |
||
UUIDField |
FloatField |
||
GenericIPAddressField |
PositiveSmallIntegerField |
||
CommaSeparatedIntegerField |
|||
DateTimeField |
|||
DateField |
|||
TimeField |
|||
ImageField |
|||
FileField |
|||
FilePathField (not yet) |
License
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 djipsum-1.0.9.tar.gz
.
File metadata
- Download URL: djipsum-1.0.9.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba3aacf1ec9e69ff1746cc91fbb5fbdf8696df95a2927f1ebdb7336242149058 |
|
MD5 | 32635630a63cfff2a08539c9e3c61dc6 |
|
BLAKE2b-256 | b52b602825f3933a5d98df228c278081d184ed5ee442e45b1ef0795c5e5df305 |