拍爱

url_utils.py 163B

12345678
  1. # -*- coding: utf-8 -*-
  2. from django.conf import settings
  3. def img_url(img_path):
  4. return u'{0}/{1}'.format(settings.IMG_DOMAIN, img_path) if img_path else ''