src/cm/utils/dj.py
author ymh <ymh.work@gmail.com>
Fri, 14 Mar 2014 10:03:37 +0100
changeset 610 dc75c8d65289
parent 0 40c8f766c9b8
permissions -rw-r--r--
add a way to specify the custom.yaml file path with the SYSCONFIG env variable

# django helpers collections
from django.conf import settings
from django.core.urlresolvers import reverse

def absolute_reverse(view_id, args):
    return settings.SITE_URL + reverse(view_id, args=args)