https://github.com/benmaier/example-crud-select2
Using select2 asynchronously in both create and update like you would do in django-admin
https://github.com/benmaier/example-crud-select2
Last synced: 2 months ago
JSON representation
Using select2 asynchronously in both create and update like you would do in django-admin
- Host: GitHub
- URL: https://github.com/benmaier/example-crud-select2
- Owner: benmaier
- Created: 2019-10-18T06:57:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-21T20:38:40.000Z (about 2 years ago)
- Last Synced: 2024-10-11T11:07:55.593Z (8 months ago)
- Language: CSS
- Homepage:
- Size: 698 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Example-CRUD for django\_select2
This is a minimal example to display how to use select2 with generic update/create views.
## Prerequisites
Install dependencies
In the repository folder, do
```bash
python -m venv env
source env/bin/activate
pip install -r requirements.txt
```## Run Server
```bash
make runserver
```## Usage
locate to
* http://localhost:8000/institution/create
* http://localhost:8000/institution/update/1
* http://localhost:8000/geoname/create
* http://localhost:8000/geoname/update/2