https://github.com/anabsz/django-ajax-crud
Django Class Based Views with JsonResponse for AJAX CRUD operations, pagination and filtering
https://github.com/anabsz/django-ajax-crud
ajax ajax-crud django javascript jquery jquery-ajax python
Last synced: about 2 months ago
JSON representation
Django Class Based Views with JsonResponse for AJAX CRUD operations, pagination and filtering
- Host: GitHub
- URL: https://github.com/anabsz/django-ajax-crud
- Owner: anabsz
- License: gpl-3.0
- Created: 2024-03-13T11:05:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-02T21:16:27.000Z (about 2 years ago)
- Last Synced: 2026-03-22T03:05:18.931Z (3 months ago)
- Topics: ajax, ajax-crud, django, javascript, jquery, jquery-ajax, python
- Language: Python
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DJANGO CLASS BASED VIEWS FOR AJAX CRUD
Access the [Brazilian Portuguese Documentation](docs/README_pt-br.md).
This repository was created to address the difficulty of creating Django Function Based Views for CRUD (Create, Read, Update, Delete) operations with AJAX.
It provides mixins and views built with JsonResponse that can be processed by AJAX requests, enabling the integration of dynamic pages into web applications.
---
**Features:**
- **AJAX Mixins:** Easily add AJAX to class-based views.
- **AJAX Views:** Ready-to-use views for CRUD.
- **Simple Integration:** Designed for easy setup and use in any Django project.
- **Documentation:** Includes setup and usage instructions.
---
**Get Started:** Clone the repository and follow the documentation to add AJAX CRUD to your Django project.
## HOW TO USE
To incorporate these classes into your Django project, follow these steps:
### Basic Configuration
Ensure that you have **jQuery** and **Bootstrap 5** included in your `base.html` file.
**base.html**
```html
```
---
Alternatively, you can add a script block in your `base.html`:
```html
...
{% block script %}{% endblock script %}
```