43
43
This isn't recommended, but can be a timesaver when you only need to run
44
44
the code tests and not the frontend tests during development.
46
Using Dashboard and Panel Templates
47
===================================
49
Horizon has a set of convenient management commands for creating new
50
dashboards and panels based on basic templates.
55
To create a new dashboard, run the following:
57
./run_tests.sh -m startdash <dash_name>
59
This will create a directory with the given dashboard name, a ``dashboard.py``
60
module with the basic dashboard code filled in, and various other common
65
* --target: the directory in which the dashboard files should be created.
66
Default: A new directory within the current directory.
71
To create a new panel, run the following:
73
./run_tests -m startpanel <panel_name> --dashboard=<dashboard_path>
75
This will create a directory with the given panel name, and ``panel.py``
76
module with the basic panel code filled in, and various other common
81
* -d, --dashboard: The dotted python path to your dashboard app (the module
82
which containers the ``dashboard.py`` file.).
83
* --target: the directory in which the panel files should be created.
84
If the value is ``auto`` the panel will be created as a new directory inside
85
the dashboard module's directory structure. Default: A new directory within
86
the current directory.