Hello all,
I am currently trying to develop a blog engine which uses the sites framework provided by Django in order to add blog-specific settings. Such preferences could be something like blog_description, the user's twitter handle, pagination settings, widgets .. etc.
Looking at the sites framework, that only way you would use it is in one of the following options:
1) Create a model that extends Site model: this would result in South adding the migration into django itself rather than the app extending the Site model. I haven't got any further with this option as i hit this road block. I think i understand that given the Site model is not abstract, extending that module is a wrong approach.
2) Create a model that has a one-to-one relation with the Site module, unregister the Site from admin and add it back again with my own "StackedInline" blog model added to the SiteAdmin that is to handle the admin interface for the Site model itself. However, the downside of this approach is that it the stackedinline would add multiple "Blog" inline forms to the site's admin page making the one-to-one relation like a foreign key relation.
The task is simple, blog specific configurations. Other approaches would be to add a non-model admin page with a configurations table that holds a single record for these configurations or extending the Site model as explained above.
What do you think the best way to go about this?
Thanks,
Rakan