If the CreateView and UpdateView are using the same template \"model_form.html\" then within the template how would I differentiate if I am creating or updating a form?
add this function in your both CreateView and UpdateView class:
# For Create
def get_context_data(self, **kwargs):
kwargs['naming'] = 'Create'
context = super(CLASSNAME, self).get_context_data(**kwargs)
return context
# For Update
def get_context_data(self, **kwargs):
kwargs['naming'] = 'Update'
context = super(CLASSNAME, self).get_context_data(**kwargs)
return context
then reference those in your template with {{ naming }}
example