def current_conference():
    from django.conf import settings
    try:
        conf_id = settings.CONFERENCE_ID
    except __HOLE__:
        from django.core.exceptions import ImproperlyConfigured
        raise ImproperlyConfigured("You must set the CONFERENCE_ID setting.")
    try:
        current_conf = CONFERENCE_CACHE[conf_id]
    except KeyError:
        current_conf = Conference.objects.get(pk=conf_id)
        CONFERENCE_CACHE[conf_id] = current_conf
    return current_conf
dataset/ETHPy150Open pinax/symposion/symposion/conference/models.py/current_conference