def get_knocker_language(self):
        if hasattr(self, 'get_current_language'):
            return self.get_current_language()
        else:
            return get_language()
Raise HTTPError if Referer header does/does not match the given pattern.
dataset/ETHPy150Open nephila/django-knocker/knocker/mixins.py/KnockerModel.get_knocker_language--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/cherrypy/cherrypy/lib/cptools.py/referer