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.1.tar.gz (4.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: canonicalwebteam.blog-0.1.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for canonicalwebteam.blog-0.1.1.tar.gz
Algorithm Hash digest
SHA256 12f43ba1787ce6f9f991dddb5862577ebad031ebf91ea0ce740499b9049bf779
MD5 71221b5fc36caf14794b78d580d9cee4
BLAKE2b-256 7576d31cb932e3e757ac3fc1ac4fd19774f01ff5c7d86ce84930978de9bdf465

See more details on using hashes here.

Supported by

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