from django.conf.urls.defaults import RegexURLPattern

def url(pattern, name=None, extra={}):
    
    def url_annotator(view):
        view.pattern = RegexURLPattern(pattern, view, extra, name)
        return view
    
    return url_annotator

from django.core.urlresolvers import RegexURLPattern

def url(pattern, name=None, extra={}):
    
    def url_annotator(view):
        view.pattern = RegexURLPattern(pattern, view, extra, name)
        return view
    
    return url_annotator

Make new URL tag forward compatible
Make new URL tag forward compatible
