call the method urlresolvers.RegexURLResolver with raw literal string '^/' and urlconf as the arguments, substitute the result for resolver.
resolver = urlresolvers . RegexURLResolver ( r'^/' , urlconf )