diff --git a/core/__pycache__/admin.cpython-311.pyc b/core/__pycache__/admin.cpython-311.pyc index a5ed392..9d4b1e0 100644 Binary files a/core/__pycache__/admin.cpython-311.pyc and b/core/__pycache__/admin.cpython-311.pyc differ diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index e061640..595ddb3 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 2a36fd6..6faf416 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/admin.py b/core/admin.py index 8c38f3f..0e4c3c8 100644 --- a/core/admin.py +++ b/core/admin.py @@ -1,3 +1,11 @@ from django.contrib import admin +from .models import RadioStream, Show -# Register your models here. +@admin.register(RadioStream) +class RadioStreamAdmin(admin.ModelAdmin): + list_display = ('name', 'url', 'is_active') + +@admin.register(Show) +class ShowAdmin(admin.ModelAdmin): + list_display = ('title', 'host', 'weekday', 'start_time', 'end_time') + list_filter = ('weekday',) \ No newline at end of file diff --git a/core/migrations/0001_initial.py b/core/migrations/0001_initial.py new file mode 100644 index 0000000..039650c --- /dev/null +++ b/core/migrations/0001_initial.py @@ -0,0 +1,37 @@ +# Generated by Django 5.2.7 on 2026-01-31 23:30 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='RadioStream', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(default='Lili Records Live', max_length=200)), + ('url', models.URLField(help_text='The URL of the live audio stream (e.g., Icecast/Shoutcast URL)')), + ('is_active', models.BooleanField(default=True)), + ('created_at', models.DateTimeField(auto_now_add=True)), + ], + ), + migrations.CreateModel( + name='Show', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=200)), + ('host', models.CharField(max_length=200)), + ('description', models.TextField(blank=True)), + ('image_url', models.URLField(blank=True, help_text='URL for the show image', null=True)), + ('start_time', models.TimeField()), + ('end_time', models.TimeField()), + ('weekday', models.IntegerField(choices=[(0, 'Monday'), (1, 'Tuesday'), (2, 'Wednesday'), (3, 'Thursday'), (4, 'Friday'), (5, 'Saturday'), (6, 'Sunday')])), + ], + ), + ] diff --git a/core/migrations/__pycache__/0001_initial.cpython-311.pyc b/core/migrations/__pycache__/0001_initial.cpython-311.pyc new file mode 100644 index 0000000..6703fc0 Binary files /dev/null and b/core/migrations/__pycache__/0001_initial.cpython-311.pyc differ diff --git a/core/models.py b/core/models.py index 71a8362..578e3ec 100644 --- a/core/models.py +++ b/core/models.py @@ -1,3 +1,25 @@ from django.db import models -# Create your models here. +class RadioStream(models.Model): + name = models.CharField(max_length=200, default="Lili Records Live") + url = models.URLField(help_text="The URL of the live audio stream (e.g., Icecast/Shoutcast URL)") + is_active = models.BooleanField(default=True) + created_at = models.DateTimeField(auto_now_add=True) + + def __str__(self): + return self.name + +class Show(models.Model): + title = models.CharField(max_length=200) + host = models.CharField(max_length=200) + description = models.TextField(blank=True) + image_url = models.URLField(blank=True, null=True, help_text="URL for the show image") + start_time = models.TimeField() + end_time = models.TimeField() + weekday = models.IntegerField(choices=[ + (0, 'Monday'), (1, 'Tuesday'), (2, 'Wednesday'), + (3, 'Thursday'), (4, 'Friday'), (5, 'Saturday'), (6, 'Sunday') + ]) + + def __str__(self): + return f"{self.title} with {self.host}" diff --git a/core/templates/base.html b/core/templates/base.html index 1e7e5fb..b91916b 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -1,25 +1,144 @@ - +
- -+ La radio que te acompaña en cada momento. Música, entrevistas y el mejor contenido en vivo directamente en tus oídos. +
+ +{% if current_show %}Con {{ current_show.host }}{% else %}Lili Records Radio{% endif %}
+Disfruta de la mejor experiencia móvil con nuestra interfaz diseñada para tu iPhone.
+Nunca te pierdas tus shows favoritos con nuestra grilla de programación actualizada.
+¿Te perdiste un programa? Escúchalo cuando quieras en nuestra sección de podcasts.
+AppWizzy AI is collecting your requirements and applying the first changes.
-This page will refresh automatically as the plan is implemented.
-
- Runtime: Django {{ django_version }} · Python {{ python_version }}
- — UTC {{ current_time|date:"Y-m-d H:i:s" }}
-