Skip to main content

wagtail-blog-simple

Simple and customizable blog app for wagtail

Features

  • Categories and tags with views
  • RSS
  • Basic starter templates with pagination
  • Comments
  • Related Blog
  • Rich text editor with gist compatible

Installation

You should start with a existing wagtail django project and have a basic understanding of Wagtail before starting. See http://docs.wagtail.io

Tested with Wagtail 2.x and Django 3.1

Refer here for wagtail configuration

  1. pip install wagtail-blog-simple
  2. Add wagtail_blog to INSTALLED_APPS in settings.py
  3. Update WAGTAILEMBEDS_FINDERS as follows
WAGTAILEMBEDS_FINDERS = [
    {
        'class': 'wagtail_blog.embed_finder.GistEmbedFinder'
    }
]
  1. Add url(r'^blog/', include('wagtail_blog.urls', namespace="blog")), to urls.py
  2. python manage.py migrate
  3. Override templates as needed.
  4. Create a 'Blog index' page in wagtail cms dashboard (under root page)

image 8. Then add sub pages to Blog Index page which will your blogs

image

Extending

Wagtail blog features abstract base models. If you want to change functionality you may extend this models from blog.abstract and use them how you'd like. Do not add blog to your INSTALLED_APPS if you do this. You'll need to create your own logic to gather context variables. See blog/models.py for an example of this. Wagtail blog doesn't support any way to "drop in" the blog app and just make minor changes to models.

Settings

  • BLOG_PAGINATION_PER_PAGE (Default 10) Set to change the number of blogs per page. Set to None to disable (useful if using your own pagination implementation).
  • BLOG_LIMIT_AUTHOR_CHOICES_GROUP Optionally set this to limit the author field choices based on this Django Group. Otherwise it defaults to check if user is_staff. Set to a tuple to allow multiple groups.
  • BLOG_LIMIT_AUTHOR_CHOICES_ADMIN Set to true if limiting authors to multiple groups and want to add is_staff users as well.

Credits

This is extended version of this repo with more features

Release files for wagtail-blog-simple 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wagtail-blog-simple 1.0.6
File Size Uploaded
wagtail-blog-simple-1.0.6.tar.gz 14.1 kB Details

Release files / wagtail-blog-simple-1.0.6.tar.gz

Download URL wagtail-blog-simple-1.0.6.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b4af520961fcf6f47ee4bf81ed11ed4739db21762b02daa3120124c032c627f7
BLAKE2b-256 checksum
How to use checksums
85dcbaeb4c5cc05081aa6517d761c7c1f7754e227f0a834827b080cfa7bc0da3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.0.6 This release

1 release file

1.0.1

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page