Example code about how to implement dependent dropdown lists with Django.
Read the blog post How to Implement Dependent/Chained Dropdown List with Django.
This project is deployed at dependent-dropdown-example.herokuapp.com.
Clone this project and open the folder.
git clone https://github.com/ba1x/django-dependent-dropdown.git
cd django-dependent-dropdown
Create and enter the Python environment.
python3 -m venv env # create the python environment
. env/bin/activate # enter to the environment
Install the requirements:
pip install -r requirements.txt
Migrate the database and run the webserver on PORT 3001.
./manage.py migrate # start the project
./manage.py runserver 3001 # run the webserver
The source code is released under the MIT License.
This work is forked from here.