          content = self._get_content(self.resource, output)
          form_instance = self._get_form_instance(self.resource)
  
          if url_resolves(settings.LOGIN_URL) and url_resolves(settings.LOGOUT_URL):
              login_url = "%s?next=%s" % (settings.LOGIN_URL, self.resource.request.path)
              logout_url = "%s?next=%s" % (settings.LOGOUT_URL, self.resource.request.path)
          else:
              login_url = None
              logout_url = None
  
          template = loader.get_template(self.template)
 
</s> remove def urlize_quoted_links(text, trim_url_limit=None, nofollow=False, autoescape=True):
 </s> add def urlize_quoted_links(text, trim_url_limit=None, nofollow=True, autoescape=True): </s> remove from utils import dict2xml, url_resolves
 </s> add from urllib import quote_plus
            login_url = "%s?next=%s" % (settings.LOGIN_URL, quote_plus(self.resource.request.path))
            logout_url = "%s?next=%s" % (settings.LOGOUT_URL, quote_plus(self.resource.request.path))
          content = self._get_content(self.resource, output)
          form_instance = self._get_form_instance(self.resource)
  
          if url_resolves(settings.LOGIN_URL) and url_resolves(settings.LOGOUT_URL):
            login_url = "%s?next=%s" % (settings.LOGIN_URL, quote_plus(self.resource.request.path))
            logout_url = "%s?next=%s" % (settings.LOGOUT_URL, quote_plus(self.resource.request.path))
            login_url = "%s?next=%s" % (settings.LOGIN_URL, quote_plus(self.resource.request.path))
            logout_url = "%s?next=%s" % (settings.LOGOUT_URL, quote_plus(self.resource.request.path))
          else:
              login_url = None
              logout_url = None
  
          template = loader.get_template(self.template)
keep keep keep keep replace replace keep keep keep keep keep
 Login/Logout and FlyWheel API link in HTML emitter - Add templates, quote next value, only use login/logout if settings.LOGIN_URL and settings.LOGOUT_URL are in urlconf 
flywheel/emitters.py