REST endpoints for administering django models.
The full documentation is at https://django-rest-admin.readthedocs.org.
Install django-rest-admin:
pip install django-rest-admin
Then use it in a project:
Attach rest_admin urls in your main urls.py file:
urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^rest_admin/', include('django_rest_admin.urls')), ]
You can then register a model in a file named rest_admin.py just like:
from django_rest_admin.register import rest_admin from .models import Person rest_admin.register(Person)
- TODO