Generates an application with basic create, read, update, and delete functionality for a model.
Data storage: sqlite
Besides the usual cookiecutter properties, you also need to provide:
- the name of the model: preferably a single noun
- the name of a unique field of the model
- a realistic test value for this unique field
- ID:
int
added automatically - a unique, short (easy to type) name configured via the
unique_field
property
You can use the optional further_fields
property to add more fields to your model.
An example:
{
"language": {
"type": "str",
"test_value": "Python"
},
"number": {
"type": "int",
"test_value": 42
}
}
Note:
further_fields
is a dictionary variable
To provide it, you might prefer using the --replay
option instead of specifying it via the CLI prompt.