Skip to main content

Simple and customizable blog app for wagtail

Project description

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 2.2.

  1. pip install wagtail-blog
  2. Add blog to INSTALLED_APPS in settings.py
  3. Update WAGTAILEMBEDS_FINDERS as follows WAGTAILEMBEDS_FINDERS = [ { 'class': 'blog.embed_finder.GistEmbedFinder' } ]
  4. Add url(r'^blog/', include('blog.urls', namespace="blog")), to urls.py
  5. python manage.py migrate
  6. Override templates as needed.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtail-blog-simple-1.0.1.tar.gz (13.5 kB view details)

Uploaded Source

File details

Details for the file wagtail-blog-simple-1.0.1.tar.gz.

File metadata

  • Download URL: wagtail-blog-simple-1.0.1.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for wagtail-blog-simple-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d940969068240a8f6cd576b03e3e417e67a06f950e26bd2b94d02d7934c71d8a
MD5 372b4f60436a1e11d4bcff2365781232
BLAKE2b-256 1020cf334001fd6da45c24a108c488f8991c3c7c33d05608fc7252c4ee1af34c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page