@openteamsinc/scrud-django
v1.0.0
Published
A Django application for SCRUD REST services. Semantic REST API generation.
Readme
scrud-django
A Django application for SCRUD REST services. Semantic REST API generation.
Installation
pip install scrud-djangoConfiguration
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 migrateConfirm setup
make run_testsStart the demo application
cd demo
python manage.py runserver