Maybe you need the allow_empty=True option in your urls.py.

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 [email protected]
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