I ended up working with my own REST API base for Django (which I would like to get rid of if I could find a workable alternative), with a few user views that were selected for corner cases that I did not want to deal with. Everything turned out fine.
So, a combination of 1 and 2; without any form of framework you end up writing the same template for ordinary cases.
I also made some standalone APIs. I like to have them as standalone services, but the fact that they are separate from the rest of the code leads to the fact that they are ignored. No technical reason; just out of sight, out of consciousness.
What I really would like to see is an approach that unifies Django forms and REST APIs, as they often share a lot of logic. Conceptually, if your application exposes something in HTML, it probably also wants to display it programmatically.
Parand Nov 23 '08 at 20:26 2008-11-23 20:26
source share