set templates and static files directory location.