|
|
|
@ -5,7 +5,7 @@ from django.core.mail import EmailMultiAlternatives |
|
|
|
from django.conf import settings |
|
|
|
from django.template.loader import render_to_string |
|
|
|
|
|
|
|
from .models import Evento, Reserva, ListaEspera |
|
|
|
from .models import Evento, Reserva, ListaEspera, Noticia |
|
|
|
from .forms import ListaEsperaForm, EventoForm |
|
|
|
|
|
|
|
|
|
|
|
@ -106,10 +106,9 @@ def lista_eventos(request): |
|
|
|
return render(request, 'eventos/lista_eventos.html', {'eventos_con_reserva': eventos_con_reserva}) |
|
|
|
|
|
|
|
|
|
|
|
def principal(request): |
|
|
|
eventos = Evento.objects.all() |
|
|
|
|
|
|
|
return render(request, 'eventos/lista_eventos.html', {'eventos': eventos}) |
|
|
|
def detalle_noticia(request, noticia_id): |
|
|
|
noticia = get_object_or_404(Noticia, id=noticia_id, publicado=True) |
|
|
|
return render(request, 'detalle_noticia.html', {'noticia': noticia}) |
|
|
|
|
|
|
|
|
|
|
|
def ayuda(request): |
|
|
|
|