add templates and static directory to base.py