@openteamsinc/scrud-django

1.0.0 • Public • Published

scrud-django

A Django application for SCRUD REST services. Semantic REST API generation.

Installation

pip install scrud-django

Configuration

Required

Add scrud_django, scoped_rbac, and django_jsonfield_backport to INSTALLED_APPS:

INSTALLED_APPS = [
  ...
  'django_jsonfield_backport',
  'scoped_rbac',
  'scrud_django',
  ...
]

Optional

Scrud Django can return RFC 7807 responses. To configure this add the Scrud Django exception handler for Django REST Framework in your settings.py.

REST_FRAMEWORK = {
  "EXCEPTION_HANDLER": "scrud_django.exceptions.scrud_exception_handler",
  ...
}

Development Get Started

Get prepared to run tests and the demo application

cd docker
conda env create -f environment-dev.yml
conda activate scrud-django
cd ..
make develop
make migrate

Confirm setup

make run_tests

Start the demo application

cd demo
python manage.py runserver

Readme

Keywords

none

Package Sidebar

Install

npm i @openteamsinc/scrud-django

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

272 kB

Total Files

93

Last publish

Collaborators

  • dcharbon
  • hoo761
  • kramba228
  • maryamkhidir