      import cStringIO as StringIO
  except ImportError:
      import StringIO
  
  # From piston
  def coerce_put_post(request):
      """
      Django doesn't particularly understand REST.
      In case we send data over PUT, Django won't
 
</s> remove from utils import dict2xml
 </s> add from utils import dict2xml, url_resolves </s> remove from itertools import chain
 </s> add  </s> remove # TODO: Display user login in top panel: http://stackoverflow.com/questions/806835/django-redirect-to-previous-page-after-login
 </s> add 
def url_resolves(url):
    """Return True if the given URL is mapped to a view in the urlconf, False otherwise."""
    try:
        resolve(url)
    except:
        return False
    return True

      import cStringIO as StringIO
  except ImportError:
      import StringIO
  
def url_resolves(url):
    """Return True if the given URL is mapped to a view in the urlconf, False otherwise."""
    try:
        resolve(url)
    except:
        return False
    return True

  # From piston
  def coerce_put_post(request):
      """
      Django doesn't particularly understand REST.
      In case we send data over PUT, Django won't
keep keep keep add keep keep keep keep keep
 Login/Logout and FlyWheel API link in HTML emitter 
flywheel/utils.py