~brunobord/beeroverip/trunk

1
2
3
4
5
6
7
8
9
10
11
from django.conf import settings


def analytics_id(request):
    """This context processor returns the ANALYTICS_ID extracted from the
    settings, if it does exist. If not, it returns an empty dictionary."""
    try:
        return {'ANALYTICS_ID': settings.ANALYTICS_ID}
    except:
        return {}