12 lines
409 B
Python
12 lines
409 B
Python
from django.shortcuts import render
|
|
from . import plot
|
|
|
|
def index_view(request):
|
|
plot_temp = plot.temperature()
|
|
plot_humidity = plot.humidity()
|
|
plot_pressure = plot.pressure()
|
|
return render(request, "collector/index.html",
|
|
context={'plot_temp': plot_temp,
|
|
'plot_humidity': plot_humidity,
|
|
'plot_pressure': plot_pressure})
|