This is the example project for implementing dynamic filters on list of data with the help of Django Rest Framework and AJAX.
Guide link: https://djangopy.org/learn/dynamically-filter-queryset-with-ajax-and-drf
-
Clone repository
git clone https://github.com/djangopy-org/dynamic_filter
-
cd to repository.
-
Create a virtualenv by following command
-
For Linux/Mac
virtualenv -p python3 .
-
For Windows
virtualenv .
-
-
Activate virtualenv
-
For Linux/Mac
source bin/activate
-
For Windows
.\Scripts\activate
-
-
Install required packages
-
For Linux/Mac
pip3 install -r requirements.txt
-
For Windows
pip install -r requirements.txt
-
-
cd to src and run the server
-
For Linux/Mac
python3 manage.py runserver
-
For Windows
python manage.py runserver
-