DRF How to test file uploads?

前端 未结 0 735
没有蜡笔的小新
没有蜡笔的小新 2021-01-14 02:14

I have a simple model, a serializer and a view. I want to upload a file over the view but no method I found worked.

Here\'s my code:

def test_api_post(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题