Nav apraksta

url_utils.py 370B

    # -*- coding: utf-8 -*- from django.conf import settings def img_url(img_path): return '{}/{}'.format(settings.IMG_DOMAIN, img_path) if img_path else '' def share_url(photo_id): return '{}/gp/{}'.format(settings.DOMAIN, photo_id) if photo_id else '' def upload_file_url(file_path): return file_path and ('{}{}'.format(settings.DOMAIN, file_path.url))