开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜