Changed API code in base.html to variable from config.py