Assuming this is just a general question about the subject:
Django Models has an imagefield option:
The image has a .url attribute which you can use for displaying (or you can use the % static % method). cf. "
For example, if your ImageField
is called mug_shot
, you can get the absolute path to your image in a template with {{ object.mug_shot.url}}
."
These attributes shouldn't change in the event that the server manipulates the image.
the .name attribute will give you the full on-disk path, which you can use for whichever manipulations you need.