Reusable blog app for Django-Widgy
This is reusable blog app designed for use with django-widgy. It can be utilized as a drop-in addition to a widgy project for creating a quick, run-of-the-mill blog or as an abstract guide to building your own custom app that takes advantage of all the wonderful features that widgy offers.
(This guide assumes that your project is already using widgy. Please see this tutorial if this is not the case.)
Install the package
$ pip install django-widgy-blog
Add widgy_blog to your INSTALLED_APPS.
Run python manage.py migrate in order to generate the relevant models in the database.
Configure the urls:
That’s it. Log in to the admin center and start adding blog posts!
Add model attributes to AbstractBlogLayout and BlogAdmin that make them easier to subclass. Update AbstractBlogLayout published queryset function to use fewer queries [Scott Clark, #18]
Backwards Incompatible: Registered the BlogLayout model with widgy. If you weren’t using this as your Blog layout, you will need to unregister it:
import widgy from widgy_blog.models import BlogLayout widgy.unregister(BlogLayout)
If you were already registering the BlogLayout yourself, you can just remove that code.