hood/views.py
def business(request):
    '''
    view function to display businesses of a particular neighbourhood
    '''
    profile=Profile.objects.get(user__username=request.user)
    business=Business.objects.filter(hood_id=profile.neighbourhood_id).all()

    return render(request,'hood/business.html',{'business':business,'profile':profile})

    view function to display businesses of a particular neighbourhood
    
view function to display businesses of a particular neighbourhood
view function to display businesses of a particular neighbourhood
def business(request):
    profile=Profile.objects.get(user__username=request.user)
    business=Business.objects.filter(hood_id=profile.neighbourhood_id).all()
    return render(request,'hood/business.html',{'business':business,'profile':profile})
def business ( request ) : profile = Profile . objects . get ( user__username = request . user ) business = Business . objects . filter ( hood_id = profile . neighbourhood_id ) . all ( ) return render ( request , 'hood/business.html' , { 'business' : business , 'profile' : profile } )
view function to display businesses of a particular neighbourhood
view function to display businesses of a particular neighbourhood
'''
    view function to display businesses of a particular neighbourhood
    '''
request