This is a minimal example which shows how to use the django-simple-select2
package.
- clone the repository
- create a virtual environment, activate it and install the requirements
- apply the migrations:
python manage.py migrate
- load seed data:
python manage.py loaddata select2-seed-data.json
- create a superuser to access Django admin:
python manage.py createsuperuser
- run the application:
python manage.py runserver
There you are!!!
- Django Admin: http://127.0.0.1:8000/admin/demo/article/
- Django ModelForm: http://127.0.0.1:8000/demo/article/create/