Find out what is user location (either from his IP or cookie).

        :return: :ref:`Custom location model <location_model>`

def locate(self):
        """ Find out what is user location (either from his IP or cookie).

        :return: :ref:`Custom location model <location_model>`
        """
        stored_location = self._get_stored_location()
        if not stored_location:
            ip_range = self._get_ip_range()
            stored_location = self._get_corresponding_location(ip_range)
        return stored_location