basically just verify if an object exists and return the object. then based on that perform actions. I'm wondering whats the right way to do it without returning a 404?
try:
listing = RealEstateListing.objects.get(slug_url = slug)
except:
listing = None
if listing: