The djangoproject.com site itself seems to use flatpages with the
content entirely in the template.
For example,
http://code.djangoproject.com/browser/djangoproject.com/
django_website/templates/flatfiles/homepage.html
doesn't reference flatpage.title or flatpage.content at all.
Assuming this is a reasonable practice to follow when it's preferable
to store my flat pages on the file system rather than in the DB, it
seems cumbersome that:
1) I still have to create a flatpage in the database and specify the
template
2) The admin for flatpages requires a title and content to be non-
blank even though they are meaningless in the pure-template usage of
flat pages.
Am I missing something?
Or are people using template-only flatpages just going ahead and
making flatpage database records with dummy title/content just to
specify the template to use?
(and is this indeed what djangoproject.com itself is doing?)
James
--
James Tauber http://jtauber.com/
journeyman of some http://jtauber.com/blog/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---