- Django 2 Web Development Cookbook
- Jake Kronika Aidas Bendoraitis
- 57字
- 2021-06-10 19:31:35
Getting ready
For this recipe to work, you will need to have the contenttypes app installed. It should be in the INSTALLED_APPS directory, by default, as shown in the following code:
# settings.py or config/base.py
INSTALLED_APPS = (
# ...
'django.contrib.contenttypes',
)
Again, make sure that you have already created the utils package for your model mixins.