Skip to content

mberry1989/kontent-sample-app-flask

Build & Test Live Demo

Kentico Kontent sample Flask application

This is a sample Flask app that uses the Kentico Kontent Python SDK to retrieve content from Kentico Kontent.

This application uses the shared Dancing Goat sample project within Kentico Kontent. If you don't have your own Sample Project, any administrator of a Kentico Kontent subscription can generate one.

If you find a bug in the sample or have a feature request, please submit a GitHub issue.

Table of Contents

Getting started

We recommend running this sample application using virtual environment tooling such as virtualenv.

To run the application:

  1. Clone the app repository with your favorite GIT client
  2. Add your Kontent Project ID key to config.py in the project root - detailed instructions available below
  3. Install the project dependencies: pip install -r requirements.txt
  4. Set the FLASK_APP environment variable: set FLASK_APP=sample
  5. Install the application using pip install -e . (including the period)
  6. Run the application: flask run

Connecting to your Sample Project

If you already have a Kentico Kontent account, you can connect this application to your version of the Sample project.

  1. In Kentico Kontent, choose Project settings from the app menu
  2. Under Development, choose API keys and copy the Project ID
  3. Open the config.py file
  4. Use the values from your Kentico Kontent project as the project_id value
  5. Save the changes

About

Kentico Kontent Flask sample

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages