<!-- main.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Air Pollution</title>
</head>
<body>
<h1>Home Page</h1>
<div>
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Submit" />
</form>
</div>
{% if form.is_bound%}
<!-- Display submitted form data -->
<div>
<p>AQI in {{ form.name.value }}:</p>
<ul>
<p>{{ response }}</p>
</ul>
</div>
{% endif %}
</body>
</html>
Please don’t post images of code here. Copy/paste the code into the body of your post.
When posting code (or templates) here, enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted. (I’ve taken the liberty of fixing the template section of your post for this.)
Also, please provide more details about the issue. Describe what you’re expecting to see that you’re not seeing. (Or what you’re seeing that you’re not expecting to see.)