if not m:
raise forms.ValidationError("It doesn't look like Flickr URL.")
author_slug, img_id = m.group('author'), m.group('img')
base_url = "https://www.flickr.com/photos/%s/%s/" % (author_slug, img_id)
try:
if not m:
raise forms.ValidationError("It doesn't look like Flickr URL.")
author_slug, img_id = m.group('author'), m.group('img')
base_url = "https://www.flickr.com/photos/%s/%s/" % (author_slug, img_id)
try: