Created
April 21, 2020 20:09
-
-
Save munisisazade/20e3bcf6641c632b9d5223a91e6c29a3 to your computer and use it in GitHub Desktop.
Revisions
-
munisisazade created this gist
Apr 21, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ from django.views import generic class CustomView(generic.View): def get_context_data(self, **kwargs): context = super(CustomView, self).get_context_data(**kwargs) context["menu"] = "menu" context["menu"] = "footer" return context class HomePage(generic.TemplateView, CustomView): def get_context_data(self, **kwargs): context = super(CustomView, self).get_context_data(**kwargs) context["data"] = "data" return context