Got it!!

I tried the code at home, and it did not work for me neither.

I then tried object_list instead of archive_index and it worked well.

So i tried archive_index again with the allow_future=True option and it worked.

My guess:
You are not on the America/Seattle time zone, and for the system your
blog post is in the future, so it does not show it.

Please, put your time zone in your settings.py or enable
allow_future=True in both archive_index and object_detail lines in the
urls.py.

Oh...  and try this URL:
(r'blog/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\w{1,2})/$',
  'django.views.generic.date_based.object_detail', dict(blog_dict,
month_format='%m',slug_field='slug', allow_future=True)),

instead of:
(r'^blog/(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>[-\w]+)/$',
'django.views.generic.date_based.object_detail', dict(blog_dict,
slug_field='slug', allow_future=True)),


Hope it helps,

G

On 11/6/06, Jay Parlar <[EMAIL PROTECTED]> wrote:
>
> On 11/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Everything works perfectly except the Generic views.
> >
> > It throws a 404 error stating that there are no entrys. But there are
> > and I can physically see that using select * from the database tables.
> > If I alter the code and write a physical view it works perfectly.
>
> Could you try starting up the Python interpreter ('python  manage.py
> shell'), and access the model from there? Does that show the entries?
>
> Jay P.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to