def is_duplicate_page(link):
    try:
        ConfiguratorPage.objects.get(link=link)
        return True
    except (ConfiguratorPage.DoesNotExist, __HOLE__):
        return False
dataset/ETHPy150Open marineam/nagcat/railroad/railroad/permalink/views.py/is_duplicate_page