<filename>web/mqtt/views.py
from django.shortcuts import render

# Create your views here.


def home(request):
    """View function for home page of site."""

    # Render the HTML template index.html with the data in the context variable
    return render(request, "index.html")

<filename>web/mqtt/views.py
from django.shortcuts import render

# Create your views here.


def home(request):
    """View function for home page of site."""

    # Render the HTML template index.html with the data in the context variable
    return render(request, "index.html")

# Create your views here. View function for home page of site. # Render the HTML template index.html with the data in the context variable