I need to pass the value from the template when connecting extends. So that I can check whether to connect the style or not.
I need to pass the page title, is main page
{% extends "base_not_auth.html" with page="main" %}
If main page, i use css file
{% if page == "main" %}
<link rel="stylesheet" href="{% static 'css/page.css' %}">
{% endif %}
question from:
https://stackoverflow.com/questions/65648892/i-can-extends-with 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…