Import data from csv file to database from django admin side

185 views
Skip to first unread message

Madhu

unread,
Oct 23, 2012, 5:25:26 AM10/23/12
to django...@googlegroups.com
Hi!
I tried to import the data from csv file to database.
I refer below link
https://groups.google.com/forum/#!msg/django-users/usjC-X9-p5E/94bf4tw3Ni8J

I have create the models and view same like above link.
I have create the "import" buttom on admin side by changing  "app/change_list" html. On the "import" onclick method i call the my import view. But it gives me error as
'DataInput' object has no attribute 'cleaned_data' And form.is_valid() always return false.

Reply all
Reply to author
Forward
0 new messages