Пример #1
0
 def clean_linkedin(self):
     data = self.cleaned_data['linkedin']
     validate_url(data, 'linkedin.com')
     return data
Пример #2
0
 def clean_github(self):
     data = self.cleaned_data['github']
     validate_url(data, 'github.com')
     return data
Пример #3
0
 def clean_devpost(self):
     data = self.cleaned_data['devpost']
     validate_url(data, 'devpost.com')
     return data
Пример #4
0
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)
Пример #5
0
def _invalid_url_exception_raised(url):
    utils.validate_url(url)
 def clean_linkedin(self):
     data = self.cleaned_data['linkedin']
     validate_url(data, 'linkedin.com')
     return data
 def clean_devpost(self):
     data = self.cleaned_data['devpost']
     validate_url(data, 'devpost.com')
     return data
 def clean_github(self):
     data = self.cleaned_data['github']
     validate_url(data, 'github.com')
     return data