I'm working o开发者_StackOverflown a mobile site and what I have to do is 1.create a picture frame 2.add to it pictures posted by users individually, then save each picture back to the database. Does anyone know how to go about this
Start with this: http://docs.djangoproject.com/en/dev/ref/models/fields/#imagefield
If you need to have multiple images for user, you probably need similar model:
class ImageUpload(Model):
user = ForeignKey(User)
image = ImageField(..)
精彩评论