You can put it everywhere in your project, I think the best would be
putting it in app_name/models.py (or creating another app just for the
flatpage); then you have to referenciate it in the app_name/admin.py, in
the line:
from models import ExtendedFlatPage
Would be
from app_name.models import ExtendedFlatPage
Good luck,
Andres
No, you don't have to change the middleware.
AFAIK the middleware [0] the only thing it does is capture the 404 and
try to get the flatpage.
Also check this stack overflow question [1], I think is what you're
trying to do.
[0]
http://code.djangoproject.com/browser/django/trunk/django/contrib/flatpages/middleware.py
Good luck,
Andres