A mediocre django fixture generator
Project description
pablo
a mediocre fixture generator for django
Installation
pip install django-pablo
Setup
- Add
pablo
insettings.py
of your django project
INSTALLED_APPS = (
'django_prometheus',
'rest_framework',
'django.contrib.contenttypes',
'django.contrib.auth',
'pablo'
)
- just run
python manage.py pablo app_name.ModelName --limit 1 -v 1
Usage
usage: manage.py pablo [-h] [-l LIMIT] [-e EXCLUDE] [--debug] [--version] [-v {0,1,2,3}] [--settings SETTINGS] [--pythonpath PYTHONPATH] [--traceback] [--no-color]
[--force-color]
[app_label[.ModelName] ...]
Generate (sometimes)meaningful fixtures for your django project
positional arguments:
app_label[.ModelName]
Restricts fixture to the specified app_label or app_label.ModelName
optional arguments:
-h, --help show this help message and exit
-l LIMIT, --limit LIMIT
Limit number of fixtures generated for a model
-e EXCLUDE, --exclude EXCLUDE
An app_label or app_label.ModelName to exclude (use multiple --exclude to exclude multiple apps/models)
--debug Enable verbosity with --debug flag
--version show program's version number and exit
-v {0,1,2,3}, --verbosity {0,1,2,3}
Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output
Sample
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-pablo-0.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for django_pablo-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ba59d0976dc7a1409a54aa9b02a7dd2660f58963567c9b2beb1f8cc87b9c520 |
|
MD5 | d9966c96f5f1bb86562097546219ee29 |
|
BLAKE2b-256 | cee8c4be15bb696d8d78818132ff16addf061126daacacceb4787875e604b385 |