Django Class Based View for both Create and Update
问题 Say I want to create a Class Based View which both updates and creates an object. From a previous question I worked out I could do one of the following things: 1) Use 2 generic views CreateView and UpdateView which I think would mean having two URL's pointing to two different classes. 2) Use a class based view which inherits base View , which I think would mean having two URL's pointing to just 1 class (I created which inherits View ). I have two questions: a) Which is better? b) ccbv.co.uk