how to get one record in django

# Import the model class
from myapp.models import YourModel

# Get the record using the model's manager
record = YourModel.objects.get(pk=1)