I placed a prediction model code inside views.py of Django i need to pass input data from html page to views.py. How to feed csv file into Django views.py through html page.And that csv file further used for read with pandas to proceed for my prediction model in views.py
def read(request):
f=request.FILES('filename')
df=pd.read_csv('f')
page.html
<form action="{% url 'count' %}" method="post" enctype="multipart/formdata">
<input type = "file" name = "filename" />{% csrf_token%}
<input type="submit" value="FORECAST"/>
</form>
it shows an error 'MultiValueDict' object is not callable