Hi i have this type of model
class Post(models.Model): title = models.CharField() image = models.ImageField()
To create a new message, I would do this thread:
- on the new page 1, the user selects a photo and uploads it (Submit)
- on the new page page 2, the user can see the photo and fill in other fields, such as "title"
My question is how to upload a photo and display it on the next page without creating a new Post object with an image field. Should I save the image in a time series directory? In this case, how can I save the link and use it on the second page?
Thanks.
source share