First, set up the movies app as described in the Creating hierarchical categories with django-mptt recipe earlier in this chapter. Then, we need to have the django-mptt-admin app installed by performing the following steps:
- Install the app in your virtual environment using the following command, or add it to your requirements and rebuild for a Docker project:
(myproject_env)$ pip3 install django-mptt-admin~=0.6.0
- Put it in INSTALLED_APPS in the settings, as follows:
# settings.py or config/base.py INSTALLED_APPS = ( # ...
'django_mptt_admin', )
- Make sure that the static files for django-mptt-admin are available to your project:
(myproject_env)$ python3 manage.py collectstatic