Skip to content
/ dj Public

Python cli package for creating django sample models and views in a single command.

Notifications You must be signed in to change notification settings

Avinash-Raj/dj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dj

python cli package for creating django models and views in a single command.

Install

Pull the code from github and install dj through setup.py.

$ cd dj
$ python setup.py install

To list all installed local apps:

dj list

To create a new model:

  1. cd into the django project (ie, into the directory where manage.py exists)

  2. Command format for creating new model.

dj create model <model-name> <app-name>

we can use c for create and m for model in the above format.

  1. The below command will create a new model Book inside student app.
dj c m Book student

To create a new view:

dj c v BookView student

selection_005

About

Python cli package for creating django sample models and views in a single command.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages