Ask Your Question
0

How to duplicate the Dashboard Webpage?

asked 2013-06-12 08:31:00 -0600

Ph4nToM gravatar image

updated 2013-06-13 05:35:19 -0600

Hello, I will try to explain that I want to do.

At the moment, When I want to access to my Dashboard,I use: http://my_ip@/dashboard/

image description

For try some modifications IN A PARALLEL WEB PAGE(when I am loggued with the user administrator for exemple), I would like to copy (directories) to duplicate my project in http://my_ip@/dashboard2/

In a basic Web Project, we store our apache project on var/www ... but in our case I don't know..

I tried to test the method of Leonardo, but I don't understand all his procedure.

1) I suppose that the file settings.py is the file in /usr/share/openstack-dashboard/openstack_dashboard/test/settings.py

I find part of code that you talk about: image description

a) But I don't understand the line: 'openstack_dashboard.dashboards.nameofyournewdashboard', that you suggest to add.

b) What are files of dashboard that I have t copy? I have files in /usr/lib/python2.6/site-packages/horizon and in /usr/share/openstack-dashboard/openstack_dashboard

I put my file code of settings.py which can be use to find a solution. image description

Maybe any ideas?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-06-12 09:16:37 -0600

Leonardo Afonso gravatar image

updated 2013-06-13 08:30:33 -0600

Let me try to give a better explaining.

this procedure will do the you create a new dashboard in your horizon aplication (new tab beside the 'Administrator' and 'Project' tabs).

you'll find where is all the directories of dashboards (directories named 'Admim', 'Project' ... in my computer is /home/user/Docs/horizon/openstack_dashboards/dashboards)

there, you'll choose a dashboard that you want modify, and duplicated it.

you will change the name of the directory duplicated and you'll add this dashboard in the INSTALLED_APPS and HORINZON_CONFIG.

Look, the link that you'll acess the dashboard will be the same, but a new dashboard there will appears.

Now, to add you new dashboard in the aplication, you'll put the directory adress in the INSTALLED_APPS and the name of the directory in HORIZON_CONFIG.

in INSTALLED_APPS, you will (obviously ; ) ) install your new dashboard and in HORIZON_CONFIG, you will just "say " to horizon, that have your dashboard

I have helped.

INSTALLED_APPS = (
'openstack_dashboard',
'django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'compressor',
'horizon',
'openstack_dashboard.dashboards.project',
'openstack_dashboard.dashboards.admin',
'openstack_dashboard.dashboards.settings',
'openstack_auth',
'openstack_dashboard.dashboards.nameofyournewdashboard',
 )

HORIZON_CONFIG = {
'dashboards': ('project', 'admin', 'yournewdashboard', 'settings',),
edit flag offensive delete link more

Comments

Thanks for your help, but I don't understand all that you say. I updated my post.

Ph4nToM gravatar imagePh4nToM ( 2013-06-13 03:39:58 -0600 )edit

I will try to do that in few times, and I post my result. Thanks for your help

Ph4nToM gravatar imagePh4nToM ( 2013-06-13 09:59:57 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-06-12 08:31:00 -0600

Seen: 144 times

Last updated: Jun 13 '13