SOLVED: Showing the uploaded csv file on Django template

Vicente G. Reyes - Sep 13 '19 - - Dev Community

I have a project that accepts an uploaded .csv file and shows it on the admin via the models.py. What I want to happen is to show these uploaded .csv file on the template.

my views are:

def data_upload(request):
    template = "home.html"

    if request.method == 'GET':
        return render(request, template)

    csv_file
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player