Returns a urlpattern prefixed with the APP_NAME in debug mode.

def url_prefixed(regex, view, name=None):
    """
    Returns a urlpattern prefixed with the APP_NAME in debug mode.
    """
    return url(r'^%(app_prefix)s%(regex)s' % {
        'app_prefix': APP_PREFIX, 'regex': regex}, view, name=name)