old_contents: from django.shortcuts import render, render_to_response
  from yelpapi.yelpapi import YelpAPI
  from hello import models
  from django.http import HttpResponse
  import yelp
  
  
  # Create your views here.
  def home(request):
      models.parseFromFlatFile()
      return render_to_response('index.html', {
          'hello': 'world'
      })
  
  
  def search(request):
      yelp_api = YelpAPI(consumer_key='iuNELsk9FWsJUHb-LdFx_A', consumer_secret='THc0I88ppFD45fjK_fGnXEhaGKs', token='jv8hIDODrf8kHAIalsFdgaJKSvo86E0U',
                         token_secret='_zQuQVlWTn_tzfnw_uhAWbQJJIs')
      search_results = yelp_api.search_query(radius_filter='5', term = 'restaurants', limit = 25)
  
  
      for business in search_results.businesses:
          name =  business.name
          image_url = business.image_url
          url = business.url
          ratings = business.ratings
  
  
      return render_to_response('portfolio.html', {
          'results': search_results
      })
      return None
  
  def initializeDB(request):
      models.load()
      return HttpResponse("Initialized")
  
new_contents: from django.shortcuts import render_to_response
  from yelpapi.yelpapi import YelpAPI
  from django.http import HttpResponse
  
  from hello import models
  
  # Create your views here.
  def home(request):
      return render_to_response('index.html', {
          'hello': 'world'
      })
  
  
  def search(request):
      yelp_api = YelpAPI(consumer_key='blah', consumer_secret='blah', token='blah',
                         token_secret='blah')
      # search_results = yelp_api.search_query('blah')
  
      # business_results = yelp_api.business_query(id='blah')
  
      return render_to_response('portfolio.html', {
          'hello': 'world'
      })
  
  def initializeDB(request):
      models.load()
      return HttpResponse("Initialized")
  
subject: Fix bad merge