def clean_linkedin(self): data = self.cleaned_data['linkedin'] validate_url(data, 'linkedin.com') return data
def clean_github(self): data = self.cleaned_data['github'] validate_url(data, 'github.com') return data
def clean_devpost(self): data = self.cleaned_data['devpost'] validate_url(data, 'devpost.com') return data
def generate_sitemap(): input_url = request.form['input_url'] utils.validate_url(input_url) sitemap_png = sitemap_generator.make_sitemap_png(input_url) return render_template('sitemap.html', sitemap=sitemap_png)
def _invalid_url_exception_raised(url): utils.validate_url(url)