[Answered ]-How do I set ProductDetail Page for different categories of product In Django?

1👍

you can use jinja in your template

{% if object.frontcamera is not none %}   
    <p>FRONT CAMERA: <span class="spec"> {{ object.frontcamera }} </span></p>
{% else %}
    do nothing
{% endif %}

{% if object.backcamera is not none %}   
    <p>FRONT CAMERA: <span class="spec"> {{ object.backcamera }} </span></p>
{% else %}
    do nothing
{% endif %}
👤Ashish

Leave a comment