Suppose I have a model like this:
class Book(models.Model): num_pages = ... author = ... date = ...
Can I create a dictionary,
Here's an example of create using your dictionary d:
Book.objects.create(**d)
To update an existing model, you will need to use the QuerySet filter method. Assuming you know the pk of the Book you want to update:
filter
pk
Book.objects.filter(pk=pk).update(**d)