I had a similar problem. I havent found any definitive solution, but
there is some solutions that might help:
Create a new model:
class Image(models):
image = models.ImageField(...)
Add to your post model:
images = models.ForeignKey(Image)
Then, create a special view to create posts, where all the images of
the post are displayed with their full path. Something like:
Images:
http://www.yoursite.com/post/2006/10/24/image1.gif
http://www.yoursite.com/post/2006/10/24/image2.gif
http://www.yoursite.com/post/2006/10/24/image3.gif
Add Image
The idea is, when a person is writting a post and they wish to add an
image, they simply have to copy-paste the field above.
Same for files.
Not the best solution, but the best I've found. Better ideas welcomed.
Hope it helps.
G
On 10/16/06, Ramdas S <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In a classic blog/content driven web app, if you need to add more than 2
> images in an article body, what you should do?
>
> I know I can manage by creating multiple ImageFields in my model, to
> accomodate more pictures. but is there any other solutions?
>
> Suppose I need to publish some stuff that may have 10 pics inside, what
> needs to be done? Creating 10 models. image.field (blank=True) inside a
> model looks ugly.
>
> Any other ideas?
>
> Thanks
>
> Ramdas
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---