1.1.1 • Published 6 months ago

django-cmd v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

dj: Makes code for Django project

Main functions

Usage

npm i -g django-cmd
# then starting use `dj` on your terminal

make:serializer

Usage: dj make:serializer [options] <name>

make:serializer

Arguments:
  name                 name of serializer, split by /, eg: app/user

Options:
  -t,--type <type>     type of serializer (default: "ModelSerializer")
  -m,--model <model>   model name
  -p,--path <path>     path to save serializer, appended following app/serializers/ path
  --fields <fields>    fields of model, split by comma
  --exclude <exclude>  exclude from model, split by comma
  --make-by-viewset    make from make:viewset command (default: false)
  -h, --help           display help for command

make:viewset

Usage: dj make:viewset [options] <name>

make:viewset

Arguments:
  name                         name of viewset, split by /, format app/viewsetName

Options:
  -m,--model <model>           model name as [model].py, usually filename in /models directory, ex: user
  -p,--path <path>             path to save viewset, appended following app/views/ path
  -ams,--also-make-serializer  also-make-serializer
  -h, --help                   display help for command

Author:

THANH LE

License:

MIT

1.1.1

6 months ago

1.1.0

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago