request.path in django template

前端 未结 4 612
栀梦
栀梦 2020-12-19 13:42

I try something like this:

{% if request.path == \'contact\' %}
    

You are in Contact

{% endif %} {% if request.path == \'shop\' %}
4条回答
提交回复
热议问题