Coder Social home page Coder Social logo

flask-cms-blog-example's Introduction

ButterCMS Flask Example

Documentation

For a comprehensive list of examples, check out our documentation.

Get Started

This is a sample flask application that uses ButterCMS to power it's blog.

  1. Clone this repository.
  2. pip install -r requirements.txt
  3. Update auth_token = "YOUR_API_TOKEN" in buttercms/blog_blueprint.py (Get a free token by registering on https://buttercms.com/)
  4. export FLASK_APP=app.py
  5. flask run

Use on your app

Simply copy the buttercms folder into your app and register it as a blueprint:

# In app.py
from flask import Flask
from buttercms.blog_blueprint import blog

app = Flask(__name__)

app.register_blueprint(blog, url_prefix='/blog')

Configure the API key in buttercms/blog_blueprint.py and then go to /blog to see your blog posts on ButterCMS appear in your app.

It's that easy!

Other

View Flask Blog engine and Full CMS for other examples of using ButterCMS with Flask.

flask-cms-blog-example's People

Contributors

chasecoleman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.