fixed template settings.py and template location
made templates path relative using os module