DEV Community

Vicente G. Reyes
Vicente G. Reyes

Posted on • Edited on

SOLVED: Showing the uploaded csv file on Django template

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

Top comments (0)