On a console, run the Django development server using HTTPS=1
HTTPS=1 ./manage.py runserver 8000
and on another console, run the stunnel proxy
cd stunnel
stunnel config
now the service can be accessed through https://localhost:8443/api/
HTTPS=1 ./manage.sh runserver 8000
and the service can be accessed through https://localhost:8443/api/
HTTPS=1 ./manage-docker.sh runserver 8000
and the service can be accessed through https://localhost:8443/api/