Answer the question
In order to leave comments, you need to log in
How does django navigate through tabs?
I know that every single page in django can be created in the views.py
file,
but what if I need to change only a small part of the template during the transition
AND only one variable with an if condition in the html template is enough.
Use
path('page/<int:page_id>/', views.page, name = 'page')
{% if args.where == 1 %}
{% if tab== 1 %}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question