I have a csv file with 3 columns. I want to display this table in a html but every element of the third column should have a hyperlink loaded from a Python array in views.py.
Currently, I am loading the table using pandas.
My views.py:
def passparam(request):
data = pd.read_csv (r'/home/darkbee/django3-password-generator/media/test.csv')
html_table = data.to_html(index=False)
arra_containing_links["#link1","#link1",............."#link1","#link80"]
context = {'loaded_data': html_table}
return render(request, 'generator/password.html', context )
My password.html:
{{loaded_data | safe}}