Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.2 KB

File metadata and controls

33 lines (19 loc) · 1.2 KB

Django app

This Django application demonstrates a simple, barebones Metabase dashboard embedded in a web application using static embedding.

Prerequisites

  • Metabase. You should have already completed the setup detailed in the README for this repository, which shows you how to get an instance of Metabase up and running in the metabase directory of this repository.

  • Python. You'll need to have Python installed on your machine.

Set up the Django application

  1. In a new terminal session, cd into /embedded-analytics.

  2. Install the application's dependencies:

pip install -r requirements.txt
  1. Once the dependencies are installed, start the application by running:
./manage.py runserver
  1. Open your browser to localhost:8000.

Explore the app to learn more about embedding Metabase charts and dashboards in applications. You can also check out the links to more documentation in the parent repository's main README.

Example embedding code

You can find example code for embedding Metabase in user_stats/views.py.