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

- from django.conf.urls.defaults import RegexURLPattern
+ 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
## Code Before:
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

## Instruction:
Make new URL tag forward compatible
## Code After:
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
