Django response method POST don't render to the html template

In my Django project I have two request functions in views, one is with .get method and the other one with .post. Both of the functions works properly because in the the terminal the code is 200.

[01/Apr/2021 08:04:39] “GET /search/search HTTP/1.1” 200 4164 [01/Apr/2021 08:04:57] “POST /search/search HTTP/1.1” 200 4164

The problem comes when i try to render the function with .post method to the html template nothing appear on the html page.

def wind_search(request):
if request.method == 'post':
        city =['city']
        weather_city_url = urllib.request.urlopen('' + city + '&appid=1a7c2a40a0734d1dc18141fc6b6241bb').read()
        list_of_data = json.loads(waether_city_url)

        # main wind information
        wind_speed = list_of_data['wind']['speed']
            # wind_gust = wea['current']['wind_gust']
        wind_deg = list_of_data['wind']['deg']
        # wind conversiont m/s to knots
        def wind_converter(w):
            knots = 2
            kt = (float(w)) * knots
            return kt

        wind_response = wind_converter(wind_speed)
        #convert wind degree in cardinal direction.
        def degrees_to_cardinal(d):

            dirs = ['N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW']
            ix = round(d / (360. / len(dirs)))
            return dirs[ix % len(dirs)]

        direction = degrees_to_cardinal(wind_deg)

        wind_data = {



    context = {"wind_data":wind_data}
return render(request, 'API/wind_search.html',context)

This is the html template:

{% extends "API/base.html" %}
{% block content %}

<!--Jumbotron -->
 <div class="jumbotron jumbotron-fluid">
  <div class="container">
    <h1 class="display-4">Wind search</h1>
    <p class="lead">Write the city and check th wind condition. </p>
<!-- form input search tool -->
 <nav class="navbar navbar-expand-lg navbar-dark">
    <form method="post" class="col-md"">
      {% csrf_token %}
      <div class=" input-group">
      <input type="text" class="form-control" name="city" placeholder="Choose Your City ...">
      <div class="input-group-btn">
        <button type="submit" class="btn btn-primary">Search</button>

  <div class="row">
    {% if wind_response and wind_direction %}
        <h4><span>Wind Speed :</span> {{wind_data.wind_speed}}</h4>
        <h4><span>Wind_Direction :</span> {{wind_data.wind_direction}}</h4>
      {% endif %}

{% endblock content %}

I hope someone can figure out why after search the city the render doesn’t work. Any help will be great. Thank you very much.