# Generated by Django 5.0.6 on 2024-05-22 14:30 from django.db import migrations def seed_movies(apps, schema_editor): Movie = apps.get_model('core', 'Movie') movies = [ { "title": "Cyberpunk: Edgerunners", "description": "A Street Kid trying to survive in a technology and body modification-obsessed city of the future. Having everything to lose, he chooses to stay alive by becoming an Edgerunner, a Mercenary outlaw also known as a Cyberpunk.", "genre": "Anime", "thumbnail_url": "https://i.ytimg.com/vi/JtqIas3bYow/maxresdefault.jpg", "video_url": "https://www.youtube.com/watch?v=JtqIas3bYow", "is_featured": True, "rating": 8.6 }, { "title": "Arcane", "description": "Amid the stark discord of twin cities Piltover and Zaun, two sisters fight on rival sides of a war between magic technologies and clashing convictions.", "genre": "Animation", "thumbnail_url": "https://dx35vtwkllw9q.cloudfront.net/netflix/arcane/images/regions/us/onesheet.jpg", "video_url": "https://www.youtube.com/watch?v=fXmAurh012s", "is_featured": False, "rating": 9.0 }, { "title": "Breaking Bad", "description": "A high school chemistry teacher diagnosed with inoperable lung cancer turns to manufacturing and selling methamphetamine in order to secure his family's future.", "genre": "Crime", "thumbnail_url": "https://m.media-amazon.com/images/M/MV5BYmQ4YWMxYjUtNjZmYi00MDQ1LWFjMjMtNjA5ZDdiYjdiODU5XkEyXkFqcGdeQXVyMTMzNDExODE5._V1_FMjpg_UX1000_.jpg", "video_url": "https://www.youtube.com/watch?v=HhesaQXLuRY", "is_featured": False, "rating": 9.5 }, { "title": "Stranger Things", "description": "When a young boy disappears, his mother, a police chief, and his friends must confront terrifying supernatural forces in order to get him back.", "genre": "Horror", "thumbnail_url": "https://resizing.flixster.com/0xxuAB_l3-iRz_9K6gI_pt6-YwE=/ems.cHJkLWVtcy1hc3NldHMvdHZzZWFzb24vUlRUVjI3OTYxNy5lbi5qcGc=", "video_url": "https://www.youtube.com/watch?v=b9EkMc79ZSU", "is_featured": False, "rating": 8.7 }, { "title": "The Witcher", "description": "Geralt of Rivia, a solitary monster hunter, struggles to find his place in a world where people often prove more wicked than beasts.", "genre": "Fantasy", "thumbnail_url": "https://m.media-amazon.com/images/M/MV5BN2FiOWU4YzYtMzVlOS00M2RjLWEyYjEtNjY2ZmNlMzllMTAyXkEyXkFqcGdeQXVyMTkxNjUyNQ@@._V1_FMjpg_UX1000_.jpg", "video_url": "https://www.youtube.com/watch?v=ndl1W4ltcmg", "is_featured": False, "rating": 8.2 } ] for movie_data in movies: Movie.objects.create(**movie_data) class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.RunPython(seed_movies), ]