Can you post the working urls.py file? Thanks. On Jan 20, 1:22 pm, "Panos Laganakos" <[EMAIL PROTECTED]> wrote: > On Jan 20, 9:11 pm, "Guillermo Fernandez Castellanos" > > <[EMAIL PROTECTED]> wrote: > > Maybe you need the allow_empty=True option in your urls.py.Indeed, that did > > it. Though, I'm curious, as there's already content in > the posts table, shouldn't these show up as I've defined them in the > template? > > > G > > > On 1/20/07, Panos Laganakos <[EMAIL PROTECTED]> wrote: > > > > I'm using Django 0.95 release. > > > > I've got a simple blog, which I wanna move to generic views. > > > > in settings.py: > > > TEMPLATE_DIRS = ( > > > '/home/panos/projects/panos/templates', > > > ) > > > > in ./blog/urls.py: > > > from django.conf.urls.defaults import * > > > from panos.blog.models import Post > > > > info_dict = { > > > 'queryset': Post.objects.all(), > > > 'date_field': 'pub_date', > > > } > > > > urlpatterns = patterns('django.views.generic.date_based', > > > (r'/?$', 'archive_index', info_dict), > > > > and I've put the the template for the archive in: > > > /templates/blog/post_archive.html > > > > When I visit mydomain.com/blog/ though, I get a 404 Page not found at > > > /blog/ > > > 'no posts available'. > > > > When I used simple views it worked fine. What exactly am I doing wrong > > > here?
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---