Skip to content

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

License

Notifications You must be signed in to change notification settings

juliosmelo/drf_scaffold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

install

copy this repository an only add drf_scaffold in your project or in your sys.path

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, user:fk auth.User CASCADE" app_name

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages