add views.py for influxdb
add templates file for influxdb