audio controls cannot be played

so i want play music from local storage, but the music cannot be played. at terminal it says not found the folder. but when i open again the website, the music can be played. but when i uploaded new music, the music cannot be played again. at my terminal like this::


<audio controls="controls">
        <source src="/media/mp3/{{}}" type="audio/mpeg">


def homepage(request):
    form = AudioForm()
    last_audio = Audio_store.objects.last()
    if request.method == "POST":
        form = AudioForm(request.POST, request.FILES)
        if form.is_valid():
            audio = form.cleaned_data.get("audio")
            context={'form':form, 'last_audio':audio}
        return render(request, 'homepage.html', context)

    context={'form':form, 'last_audio':last_audio}
    return render(request, "homepage.html", context=context)

Hi, did you check the resulting HTML if the path to the audio file is correct? Are you using the FileField?

I think you should use something like and without the prefix.

yes, im using FileField. what do you mean without prefix? actually now the audio controls appear, but the music cannot be played. do you know what’s wrong?