I want to be able to set a variable in the django admin panel, which will be passed to the template as template variable, similar to placeholder in cms. (For example when I save this variable in admin panel it will be rendered to the template)
Added.
Let's say I have a site page with text area, this text area I can replace by template variable in view with template tags {{ text }}
. But I want to do it in the django admin panel, what i did was creating the model with text field, registering it in admin panel and replacing only one row in this table and geting this text variable in view that I want to pass in to the template as text_home = Text_home_page.objects.all()[0].text
.
I think that creating whole table to modify only one template variable is not a good idea.
I found a similar question but i dont know how to implement it.