Active class change made using Django

Now ‘active’ class changes using django if endif without query function
Some comments removed