How Default random image in ImageField

前端 未结 0 857
傲寒
傲寒 2021-02-10 06:09

I have a Post model, and I want to add a random photo from the static directory when creating a new post.

In the static directory, I have a folder with images. And a medi

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