I have some images i retrieve from http://image.eveonline.com/ that i want to save. Now part of those will be static, while others might change. Instead of pulling all static images from their site, i want to do this when they are needed (if they are not saved yet)
How can i tell my model to save the imagefield in static or in media
Example model:
class ItemIcon(models.Model):
item = models.ForeignKey("items.Item")
size = models.IntegerField(choices=settings.IMAGE_SIZES)
url = models.URLField(unique=True) #The url to the evesite
image = models.ImageField(upload_to="static/images/items/")
(this model should be saved in static)