if you want to write it in a new frontend, have something like django rest framework, make an api for everything you need, and have the JS frontend communicate with the django backend
What, can we write a new front-end framework using python?