You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. My Name is Martin. I try to use the django-gencal package but not work for me.
The model for that like show in calender is as follows:
class Excurtion(models.Model):
name = models.CharField(("Nombre"),max_length="200")
description = models.TextField(("Descripcion"))
summary = models.TextField(("Resumen"))
region = models.ForeignKey('Region')
date = models.DateField(("Proxima Fecha"))
place = models.CharField(('Lugar'),max_length="200")
time = models.CharField(('Horario'),max_length="200")
duration = models.CharField(("Duracion"),max_length="10")
publish_last_exc = models.BooleanField(("Publicar en Ultimas Excursiones?"), default=False,blank=True)
intro_last_exc = models.TextField(_('Descripcion de la experiencia'),blank=True)
Hi. My Name is Martin. I try to use the django-gencal package but not work for me.
The model for that like show in calender is as follows:
class Excurtion(models.Model):
name = models.CharField(("Nombre"),max_length="200")
description = models.TextField(("Descripcion"))
summary = models.TextField(("Resumen"))
region = models.ForeignKey('Region')
date = models.DateField(("Proxima Fecha"))
place = models.CharField(('Lugar'),max_length="200")
time = models.CharField(('Horario'),max_length="200")
duration = models.CharField(("Duracion"),max_length="10")
publish_last_exc = models.BooleanField(("Publicar en Ultimas Excursiones?"), default=False,blank=True)
intro_last_exc = models.TextField(_('Descripcion de la experiencia'),blank=True)
the view is as follows,
def calendar(request):
queryset = Excurtion.objects.all()
and the template is as follows,
{% extends 'index.html' %}
{% load gencal %}
{% block title %} Calendario {% endblock %}
{% block body_class %}
main-content
{% endblock %}
{% block content %}
Calendario de Excursiones
{% endblock %}
this render a calendar but not show the excurtions availables in the correspondig day.
If you could help me thank you very much
Cheers,
Martin Onetti
The text was updated successfully, but these errors were encountered: