seller_central_backend/test_profile_update.py

8 lines
220 B
Python
Raw Normal View History

import os
import django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
django.setup()
from api.models import SupplierProfile
print("Supplier Profiles:", list(SupplierProfile.objects.all().values()))