使用平面页面,URL模式和视图在网站上导航 使用pip安装: pip install django-site-navigation 在您的INSTALLED_APPS中添加“ site_navigation”: INSTALLED_APPS = ( ... ' site_navigation ' ) 在您的TEMPLATE_CONTEXT_PROCESSORS中添加“ site_navigation.context_processors.get_navigation_properties”: TEMPLATE_CONTEXT_PROCESSORS = ( ... ' site_navigation . context_processors . get_navigation_properties ' ) 将“ site_navigation.mid