On 8/7/06, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
>
> I am getting 404 with archive_day date-based generic view. I know that
> some objects exist for specified day (they are present in archive_month
> view), but I consequently get 404 if I specify a day.
>
> My urlconf has an entry:
>     (
>         r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/$',
>         'django.views.generic.date_based.archive_day',
>         item_dict
>     ),
> where item_dict contains only queryset, date_field and month_format (I
> use "%m"). The dictionary for archive_month view has identical
> definition and contains objects with specified date.
>
> I am stuck here. How can I debug this to get any clue?
>
> Cheers
> Jarek Zgoda
>
>

If the only records you inserted are today, make sure you have the
correct timezone set.

I had a similar problem (not seeing the records I just inserted into
database - actually they were the only one) because I left the
timezone variable set to "America/Chicago" and i live in Europe (and
my timezone is Chicago + 8). So the date filter considered all the
records 'in the future'.

Hope that helps.

-- 
m.
http://marius.me.uk/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to