Django Dynamic API over DRF
Project description
Django Dynamic DataTables
Simple tool that Generates Secure APIs on top of DRF
with minimum effort - actively supported by AppSeed.
Features
DataTables
provided bySimple DataTables
Minimal Configuration
(single line in config for each model)Handles any model
defined across the project
How to use it
Step #1 -
Install the package
$ pip install django-dynamic-datatb
// OR
$ pip install git+https://github.com/app-generator/django-dynamic-datatb.git
Step #2 -
Update Configuration
, include the new APPs
INSTALLED_APPS = [
'django_dyn_dt', # Django Dynamic Data tables # <-- NEW
]
Step #3 -
Register the model
incore/settings.py
(DYNAMIC_API section)
This sample code assumes that app1
exists and model Book
is defined and migrated.
DYNAMIC_DATATB = {
# SLUG -> Import_PATH
'books' : "app1.models.Book",
}
Step #4 -
Migrate DB
$ python manage.py makemigrations
$ python manage.py migrate
Step #5 -
Update routing
, include APIs
from django.contrib import admin
from django.urls import path, include # <-- NEW: 'include` directive added
urlpatterns = [
path("admin/", admin.site.urls),
path('', include('django_dyn_dt.urls')), # <-- NEW: API routing rules
]
Step #7 - Use the Dynamic Datatable module
If the managed model is Books
, the dynamic interface is /datatb/books/
and all features available.
Links & resources
- DRF - HOMEpage
- More Developer Tools provided by
AppSeed
- Ask for Support via
Email
&Discord
Django Dynamic DataTables - Open-source library provided by AppSeed
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-dynamic-datatb-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58f7f8bd0a9d79f29310b48c69d3032c51ed71393d35d3fd69213baf533ce9a7 |
|
MD5 | 74f6a41866874ff3ab3fe72c9c89870a |
|
BLAKE2b-256 | ce533d43519ed80438f8e7d292784243471470140ee191e17a1835dbbc8b1439 |