Coder Social home page Coder Social logo

buttercms / django-starter-buttercms Goto Github PK

View Code? Open in Web Editor NEW
8.0 7.0 5.0 665 KB

Drop-in proof-of-concept Python/Django app, fully integrated with your ButterCMS account

Home Page: https://django-starter-buttercms-demo.herokuapp.com/

Python 48.05% CSS 4.49% JavaScript 11.58% HTML 35.84% Procfile 0.03%
butter buttercms cms django python starter-project

django-starter-buttercms's Introduction

Django + ButterCMS Starter Project

Important

We officially support Python versions 3.8 to 3.12.

Live demo: https://django-starter-buttercms-demo.herokuapp.com/

This Django starter project fully integrates with dynamic sample content from your ButterCMS account, including main menu, pages, blog posts, categories, and tags, and all with a beautiful, custom theme with already-implemented search functionality. All of the included sample content is automatically created in your account dashboard when you sign up for a free trial of ButterCMS.

Built with Cookiecutter Django

Deploy

1) Installation

First, create a virtual environment and install dependencies by running the below commands.

$ git clone https://github.com/ButterCMS/django-starter-buttercms.git
$ cd django-starter-buttercms
$ python3 -m venv butterenv && source butterenv/bin/activate
$ pip install --upgrade pip && pip install -r requirements.txt

2) Set ButterCMS API Token

To fetch your ButterCMS content, add your API token as an environment variable.

$ echo 'BUTTERCMS_API_TOKEN=your_token' >> .env

3) Run Django Local Development Server

To view the app in the browser, you'll need to run the local development server:

$ python manage.py runserver

Congratulations! Your starter project is now live at: http://localhost:8000/

4) Deploy on Heroku

Our starter app can be deployed to Heroku with the click of a button:

  1. Create a Heroku account at https://signup.heroku.com.
  2. Click the button below and fill in an app name and your Butter API token. Then click "deploy".

Deploy

5.) Previewing and Draft Changes

Your starter app allows you to preview draft changes made to content in your ButterCMS.com account by default; to see draft changes, add '?preview=1' to the end of any URL (e.g., http://localhost:8000/?preview=1)

django-starter-buttercms's People

Contributors

failedguidedog avatar jakelumetta avatar martinalbert avatar prokopsimek avatar violantecodes avatar zanderle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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