How to refresh and clear search result in django

Hello, I have an issue with a search engine I wrote in django. I can look for my query just fine but whenever I refresh the website, the result doesn’t go away until I look for another thing and the new one appears. How do I get rid of it?

This is my view:

from django.shortcuts import render, HttpResponse
from django.views.generic import ListView
import requests

def index(request):
    movies = []
    if request.method == 'POST':
        film_url = ''
        search_params = {
            'films' : 'title',
            'films' : 'description',
            'films' : 'director',
            'films' : 'release_date',
            'q' : request.POST['search']

        r = requests.get(film_url, params=search_params)
        results = r.json()

        for result in results:
             movie_data = {
                'Title' : result['title'],
                'Release_date': result['release_date'],
                'Director' : result['director'],
                'Producer' : result['producer'],
                'Description' : result['description']


    context = {
    'movies' : movies
    return render(request,'core/index.html', context)

This is my html:

{% load static %}
<!DOCTYPE html>
    <title>Ghibli Studio | Movies</title>
    <link rel="stylesheet" href="{% static 'core/main.css' %}">
    <div class=" header">

    <div class="wrap">
        <form action='/' method="POST">
            {% csrf_token %}
            <div class="search">

                <input type="text" name="search" class="searchTerm" placeholder="Type movie name">
                <link rel="stylesheet" href="">
                <button type="submit" class="searchButton">

                    <i class="fa fa-search" style="font-size:24px"></i>



    {% if movies %}
    {% for movie in movies %}
        <ul class="result">
                @import url('');
            <h5 style= "color:lightslategray;">
                Release date: {{movie.Release_date}} <br>
                Director: {{movie.Director}}
                <br>Producer: {{movie.Producer}}

        {% endfor %}

        {% endif %}