set up template directory's path and static directory's path in model.py