Skip to content

achp-project/dashboard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arches Dashboard

Arches Dashboard is a very basic example of an Arches App. It demonstrates how to create an app that adds an Arches component with Django model and view. Specifically it adds a plugin that displays summary of resources and tiles in the system, and allows a user to record that summary to monitor the change in the resource/tile count over time.

You can add the dashboard to an Arches project in just a few easy steps.

  1. Install if from this repo (or clone this repo and pip install it locally).
pip install git+https://github.com/chiatt/dashboard.git
  1. Add 'dashboard' as to the ARCHES_APPLICATIONS and INSTALLED_APPS settings in the demo project's settings.py file
ARCHES_APPLICATIONS = ("dashboard",)  # be sure to add the trailing comma!
INSTALLED_APPS = [
    ...
    "demo",
    "dashboard",
]
  1. Update your urls.py file in your project. You'll likely need to add the re_path import:
from django.urls import include, path, re_path

and then the following path:

re_path(r"^", include("dashboard.urls")),
  1. From your project run migrate to add the model included in the app:
python manage.py migrate
  1. Next be sure to rebuild your project's frontend to include the plugin:
yarn build_development
  1. When you're done you should see the Dashboard plugin added to you main navigation bar:
image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.1%
  • HTML 34.2%
  • JavaScript 14.7%