2 from django.conf import settings
5 def context_processor(request):
7 overrides = getattr(settings, 'AB_TESTS_OVERRIDES', {})
8 for abtest, nvalues in settings.AB_TESTS.items():
9 ab[abtest] = overrides.get(
12 (abtest + request.META['REMOTE_ADDR']).encode('utf-8')
13 ).digest()[0] % nvalues