custom_imagefield.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:Instagram 作者: Fastcampus-WPS-5th 项目源码 文件源码
def url(self):
        try:
            return super().url
        except ValueError:
            from django.contrib.staticfiles.storage import staticfiles_storage
            return staticfiles_storage.url(self.field.static_image_path)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号