Skip to main content

Flask extension to add a nice blog to your website

Project description

# Blog flask extension

This extension allows you to add a simple blog frontend to your flask app. All the articles are pulled from the WordPress API that has the plugin WP-JSON.

This extension provides a blueprint with 3 routes: - “/”: that returns the list of articles - “/<slug>”: the article page - “/feed”: provides a RSS feed for the page.

## How to use

In your app you can:

import canonicalwebteam.Flask_Blog import BlogExtension blog = BlogExtension(app, “Blog title”, [1], “tag_name”, “/url-prefix”)

If you use the factory pattern you can also:

import canonicalwebteam.Flask_Blog import BlogExtension blog = BlogExtension() blog.init_app(app, “Blog title”, [1], “tag_name”, “/url-prefix”)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

canonicalwebteam.blog-0.1.4.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file canonicalwebteam.blog-0.1.4.tar.gz.

File metadata

  • Download URL: canonicalwebteam.blog-0.1.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for canonicalwebteam.blog-0.1.4.tar.gz
Algorithm Hash digest
SHA256 930a141a814c0559f52cfca8f3bc5f38c0084b429584f013bd99c4da22d19db7
MD5 3afde9ebbed80f73c671b40285c27906
BLAKE2b-256 cc97d62220d666783fe7a2b15e22c73084bf4e379cc05ea81b2ceecd02ecf3e4

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