def page_not_found_view(request, exception): return render(request, theme + '/404.html', get_base_context({}))
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) get_base_context(context) self.theme = context['config']['v2_blog_config']['theme'] return context
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) get_base_context(context) return context