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.
We recommend running this sample application using virtual environment tooling such as virtualenv.
To run the application:
- Clone the app repository with your favorite GIT client
- Add your Kontent Project ID key to
config.py
in the project root - detailed instructions available below - Install the project dependencies:
pip install -r requirements.txt
- Set the FLASK_APP environment variable:
set FLASK_APP=sample
- Install the application using
pip install -e .
(including the period) - Run the application:
flask run
If you already have a Kentico Kontent account, you can connect this application to your version of the Sample project.
- In Kentico Kontent, choose Project settings from the app menu
- Under Development, choose API keys and copy the Project ID
- Open the
config.py
file - Use the values from your Kentico Kontent project as the
project_id
value - Save the changes