Getting ready

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:

  1. 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
  1. Put it in INSTALLED_APPS in the settings, as follows:
# settings.py or config/base.py
INSTALLED_APPS = (
    # ...
'django_mptt_admin', )
  1. Make sure that the static files for django-mptt-admin are available to your project:
(myproject_env)$ python3 manage.py collectstatic
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.161.132