Client-side detection of features to influence server-side responses in Django