This is a python library that helps you create CRUD functionalites in django with few lines of code.
Project description
my-django-crud is a python library built using django rest framework that enables you perform CRUD functionalities on your Django models without writing serializer classes and view functions.
Quick Start
Add “DjangoCrud” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'DjangoCrud', ]
- Import view functions from DjangoCrud in your urls.py like this:
from DjangoCrud import views
Specify the url paths like below:
urlpatterns = [ path('create/', views.create(my_model), name='create'), path('list/', views.list(my_model), name='list'), path('update/<str:pk>', views.update(my_model), name='update'), path('detail/<str:pk>', views.detail(my_model), name='detail'), path('delete/<str:pk>', views.delete(my_model), name='delete') ]
NOTE
Replace “my_model” with your own model
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
my-django-crud-1.5.tar.gz
(3.7 kB
view details)
File details
Details for the file my-django-crud-1.5.tar.gz
.
File metadata
- Download URL: my-django-crud-1.5.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70aebaa2a1abc4fc4e143e92831f000d2b556861b50c080a075dd552dd47115d |
|
MD5 | bceff851a177f239477cf860b4507995 |
|
BLAKE2b-256 | 3d19850bcf63033de571e5698452e602737ed2b4feffe91d6b071b6676bfb005 |