Coding SerializerFactory Django

I have a Django App using Django RFM. And I Have 10 Serializers, 10 Models, 10 Views and 10 Urls. All Everything works well, but I want optim this because on my Views nothing changes, except the name of the Serializer. So, how can I generalize the views so that depending on the URL, Django fetches the right Serializer and uses it in the views. Eventually, I'd like to have just one view that fetches the Serializer automatically ? I Hope it's possible..

Namely, I use Django with React implemented

Back to Top