loading...

SOLVED: Showing the uploaded csv file on Django template

highcenburg profile image Vicente G. Reyes Updated on ・1 min read

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

Discussion

markdown guide