On 8/2/06, Edmund <[EMAIL PROTECTED]> wrote:
> Newbie question here... I installed Flatpages as per the docs. Then, I
> created a flatpage via the admin interface, and also checked that the
> SITE_IDs shown matched that in my settings.py.
>
> But, I get a 404. On tracing through the 404, I see that it is being
> raised in ~/django_src/django/shortcuts/__init__.py as a result of a
> klass.DoesNotExist exception in the get_object_or_404 method.
>
> What does this mean? What have I not done?

Hi Edmund,

Are you sure you added
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware' to
your MIDDLEWARE_CLASSES setting? That's the part that actually
*serves* the flatpages.

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
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