Building a blog-like app with django, should I normalize images outside of the blog entry's model? -
Just wondering because I am currently keeping ImageFields as part of the BlogPost model. If I want to support capacity for 20 images, then I have 20 such fields, as often around 19 of them will never be used. But if I consider them common in a different model, then admin is not comfortable to add images to a post in the page, because you have to select the post from the drop down for each image you want to add.
Is there a better way to resolve this?
You should definitely make different models for it.
To edit images in the admin site, you should use inline to read the documentation here:
Comments
Post a Comment