It's hard to answer without seeing what's in your db, and what are the
values of ano/mes/dia variables, but:
- maybe you do not have pytz package installed (you can install with 'pip
install pytz') - though in that case you should get an error when trying to
access the results
- maybe the day
I figured out what did happen...
i just needed to put midnight on timefield and it worked
Thks for help!!
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to d
When you print the SQL query that is executed on the database
print lista_de_balada.query
Does it make sense?
When you see the actual value stored in the database is it stored correctly?
Also remember that the month and day are 1-based (january is 1, february is
2, etc)
Suerte! :D
On Sun, D
Hi, i'm new in django and python,
I'm trying to create a queryset to filter according to date.
this is my MODEL : data = models.DateTimeField()
and my VIEW:def resultado(request, dia, mes, ano):
lista_de_balada=
Balada.objects.filter(data__year=ano, data__mo
4 matches
Mail list logo