-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSV Post generates error #30
Comments
@johnecon |
@johnecon Interesting. What version of |
That was on
|
I'm having the same issue, though instead of uploading a file I'm Here's the AngularJS method that makes the request:
And it's just a placeholder for now but here's the view that handles things on the server:
The View handles things fine if I don't set a |
I'm not sure if this is related, but I'm getting:
when I try to post CSV data at my create view. The CSV data is basically a reflection of what I get back from the CSV renderer:
I'm not really sure what's causing it. Does anyone have any clue what the problem could be? I'm using |
I've hit this too -- applying this change (#47) seems to have resolved the issue. Can anyone else seeing the above problem clarify whether they were using Python3 or Python2? The fix I made is just for Python3. |
For what it's worth 5 years later @rikkiprince and others who run into this issue in the future, I ran into the "Expected a dictionary, but got OrderedRows" issue with a POST request (although I think file upload would have also triggered it). It was being thrown by my serializer because I hadn't passed many=True argument to the serializer constructor, so it was trying to serialize all the rows of the CSV instead of an individual row at a time. |
I run this through a terminal:
This is my view in listening in api/config
The error I am getting:
I am using python 3.4.2 django 1.7
This is how my csv looks when I edit it:
Any help would be highly appreciated :)
The text was updated successfully, but these errors were encountered: