import os import sys import django # Добавляем путь к проекту sys.path.insert(0, 'C:/Users/team_/Desktop/test_qwen/myproject') # Настройка Django os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') django.setup() from tenants.models import TenantRegistration # Создаём заявку на регистрацию registration = TenantRegistration.objects.create( shop_name='Test Shop 3', schema_name='shop3', owner_email='shop3@example.com', owner_name='John Doe', phone='+375291234567', status=TenantRegistration.STATUS_PENDING ) print(f"Registration created: {registration.id}") print(f" Shop: {registration.shop_name}") print(f" Schema: {registration.schema_name}") print(f" Email: {registration.owner_email}") print(f" Status: {registration.status}")