diff --git a/make_post_sell/views/shop.py b/make_post_sell/views/shop.py index 63cb00d..23ef67e 100644 --- a/make_post_sell/views/shop.py +++ b/make_post_sell/views/shop.py @@ -14,6 +14,7 @@ from . import ( from ..models.shop import ( Shop, get_shop_by_id, + get_shop_by_domain_name, is_shop_name_valid, is_shop_name_available, ) @@ -40,7 +41,7 @@ from ..lib.phone_numbers import is_phone_number_valid from pyramid.httpexceptions import HTTPFound # feel free to come up with a better plan, GPT-4 made this regex. -DOMAIN_NAME_REGEX = re.compile(r'^(?=.{1,253}$)(?:(?!-)[A-Za-z0-9-]{1,63}(?