Implement a Python script that interacts with a Django web application. The script should be able to:
    - Create new objects in the database
    - Retrieve objects from the database based on filters
    - Update existing objects in the database
    - Delete objects from the database PLAINFORMAT
import os
import django

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'your_project_name.settings')
django.setup()

from your_app_name.models import YourModel


def create_object(**kwargs):
    obj = YourModel.objects.create(**kwargs)
    obj.save()
    return obj


def retrieve_objects(**filters):
    return YourModel.objects.filter(**filters)


def update_object(obj_id, **updates):
    obj = YourModel.objects.get(id=obj_id)
    for key, value in updates.items():
        setattr(obj, key, value)
    obj.save()


def delete_object(obj_id):
    obj = YourModel.objects.get(id=obj_id)
    obj.delete()


# Example usage:

# Create a new object
new_obj = create_object(field1='value1', field2='value2')

# Retrieve objects based on filters
filtered_objs = retrieve_objects(field1='value1')

# Update an existing object
update_object(new_obj.id, field1='updated_value1', field2='updated_value2')

# Delete an object
delete_object(new_obj.id)