There is a base site template, base.html, into which an mptt-object with product categories is transferred from the store's application, all applications in their templates inherit the basic pattern and inherit from Mixin in their views, to get into the mptt nodes context. Everything works fine until you need to create a flatpage. I just can't figure out how to pass the necessary data into the flatpage context

  • It is easier to use the context processor for these purposes. - Sergey Gornostaev
  • Thank! really convenient happened. What you need! -
  • The easiest way was to really not use the flatpage, instead create your own page model. - Igor

0