Since the above solution didn’t actually work for me (.MEDIA_ROOT settings are not interpreted, and I want gitignore in the media folder) here is a (somehow hacked) solution that allows me to specify the default static file in the image / FileField:
image = models.ImageField(upload_to="image/", default='..{}img/dashboard/default-header.jpg'.format(settings.STATIC_URL), verbose_name=_(u'image'))
The hacker part is that if you have MEDIA_URL with more than one level "..", it will not be enough (but then you can just go with "../../ ').
Papers.ch
source share