Once you have an app hooked in the CMS pages, all of the URL paths under the page node will be controlled by the urls.py file of the app. To add some menu items under this page, you need to add a dynamic branch of navigation to the page tree. In this recipe, we will improve the movies app that was converted for CMS use in the previous recipe, and we will add new navigation items under the Movies page.
Attaching your own navigation
Getting ready
Suppose that we have a URL configuration for different lists of movies—editor's picks, commercial movies, and independent movies - as shown in the following code:
# movies/urls.py from django.shortcuts import redirect
from django.urls import path
from django.conf.urls.i18n...