def clean_url(self):
        url = urlparse.urlparse(self.cleaned_data['url'])
        if url.netloc != self._domain:
            raise forms.ValidationError('Please enter a valid URL starting with http://%s/' % self._domain)
        return self.cleaned_data['url']
dataset/ETHPy150Open djangome/djangome/djangome/views.py/RedirectForm.clean_url/original