开发者

creating a frame to put pictures in it and saving back to database

开发者 https://www.devze.com 2022-12-22 09:26 出处:网络
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

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(..)
0

精彩评论

暂无评论...
验证码 换一张
取 消