  
      def render(self, context):
          from django.core.urlresolvers import reverse, NoReverseMatch
          args = [arg.resolve(context) for arg in self.args]
          kwargs = dict([(smart_str(k,'ascii'), v.resolve(context)) for k, v in self.kwargs.items()])
          try:
              return reverse(self.view_name, args=args, kwargs=kwargs)
          except NoReverseMatch:
              try:
                  project_name = settings.SETTINGS_MODULE.split('.')[0]
 
</s> remove                 return reverse(project_name + '.' + self.view_name, args=args, kwargs=kwargs)
 </s> add                 return reverse(project_name + '.' + self.view_name,
                               args=args, kwargs=kwargs) </s> remove import sys
import re

try:
    reversed
except NameError:
    from django.utils.itercompat import reversed     # Python 2.3 fallback
 </s> add  </s> remove     except ValueError: # invalid literal for int()
 </s> add     except ValueError: # Invalid literal for int(). </s> remove         # apply filters
 </s> add         # Apply filters. </s> remove         raise TemplateSyntaxError, "'%s' takes at least one argument (path to a view)" % bits[0]
 </s> add         raise TemplateSyntaxError("'%s' takes at least one argument"
                                  " (path to a view)" % bits[0])
        kwargs = dict([(smart_str(k,'ascii'), v.resolve(context))
                       for k, v in self.kwargs.items()])
  
      def render(self, context):
          from django.core.urlresolvers import reverse, NoReverseMatch
          args = [arg.resolve(context) for arg in self.args]
        kwargs = dict([(smart_str(k,'ascii'), v.resolve(context))
                       for k, v in self.kwargs.items()])
          try:
              return reverse(self.view_name, args=args, kwargs=kwargs)
          except NoReverseMatch:
              try:
                  project_name = settings.SETTINGS_MODULE.split('.')[0]
keep keep keep keep replace keep keep keep keep keep
 Style and import fixes.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6641 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/template/defaulttags.py