drf-scaffold

Dead simple custom command to create a django app with djando rest framework CRUD RESTFull API


Keywords
django, django-apps, django-rest-framework, kiss, productivity, scaffolding-wizards, simple
License
MIT
Install
pip install drf-scaffold==0.1.4

Documentation

Setup

Install via pip

pip install drf_scaffold

Add it to installed apps in django settings.py:

INSTALLED_APPS = (
    ...
    'drf_scaffold',
)

Now create the drf app

python manage.py startdrfapp -m my_model --fields name:string, nickname:string, age:integer, email:email

The command above will generate a django app with models, serializers, views and urls.py. You must add to the to installed apps django settings, run migrations commands and add the url in root projects's urls.py.

Run tests

python -m unittest