I'm sorry if this is a stupid question, but I'm having trouble finding out how to create a new instance of a model inside the views.
Referencing this question, I tried doing
foo = FooModel()
save()
but I got a NameError: name 'save' is not defined. I then tried
bar = BarModel.objects.create()
but got AttributeError: 'Manager' object has no attribute 'Create'.
Am I not understanding something very trivial? Maybe those commands are just for the command line? In that case, how do I create new objects, or filter them, etc... from code?