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
Hashes for canonicalwebteam.blog-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 066431e9bb4f9ae81700cb91ac01a23aab9218e4fa25219921c301e0a74df77a |
|
MD5 | f1b628b2d14d2455d5f194bd83efd9b4 |
|
BLAKE2b-256 | fff2f6cf1a2e4b5cb7c943e62cfc8246991b5c3ae8126bbf94ca4a6cf175da86 |