Hello everyone, I am currently working on quite large-scale django-database. What client needs is a huge database of articles, and each article will be accompanied by 10-15 images, inside the article's body. Images and articles should be uploaded via admin interface. Right now I've solved the problem in the following way: there is class Article, there is class Photo, with ForeignKey related to Article. Image is stored as a ImageField, to insert it into the article one should use html <img> tag. There is one problem with it - since all image files are stored in one place, and there original name is not changed (How to change it?) it is very likely that images with same name would appear, and there will be some problems. I want to store them in this format - /media/<article_id>/<photo_id>, but I can't figure out, how to do that. Any ideas, anyone?
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---