暂无描述

url_utils.py 268B

123456789101112
  1. # -*- coding: utf-8 -*-
  2. from django.conf import settings
  3. def share_url(photo_id):
  4. return '{}/gp/{}'.format(settings.DOMAIN, photo_id) if photo_id else ''
  5. def upload_file_url(file_path):
  6. return file_path and ('{}{}'.format(settings.DOMAIN, file_path.url))