def get_login_url(self):
            login_url = self.login_url or settings.LOGIN_URL
            if not login_url:
                raise ImproperlyConfigured(
                    '{0} is missing the login_url attribute. Define {0}.login_url, settings.LOGIN_URL, or override '
                    '{0}.get_login_url().'.format(self.__class__.__name__)
                )
            return force_text(login_url)
Override this method to override the login_url attribute.
dataset/ETHPy150Open pinax/pinax-likes/pinax/likes/compat.py/AccessMixin.get_login_url