Skip to main content

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

  1. Add “DjangoCrud” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'DjangoCrud',
    ]
  2. Import view functions from DjangoCrud in your urls.py like this:

    from DjangoCrud import views

  3. 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

This version

1.5

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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page