Replaced render_to_response with render and added context = {} to your_restaurants and restaurant_details.