Ask Your Question

NameError: name 'panel' is not defined

asked 2014-01-03 10:24:12 -0500

updated 2014-01-22 15:12:34 -0500

Evgeny gravatar image

Hello All,

I am new to customising openstack so was hoping someone could point me right direction? I am following a guide called 'Building on Horizon' (sorry I cant post a link due to being new to the forum). I am following the code steps through to create a very basic Panel and DashBoard to point to my ticketing software.

I have created a dashboard running:

./ -m startdash MyAccount

This created me a nice folder structure. I then add the following code to my

from django.utils.translation import ugettext_lazy as _

import horizon

class Myaccount(horizon.Dashboard):
    name = _("Myaccount")
    slug = "myaccount"
    panels = (invoices,)  # Add your panels here.
    default_panel = 'invoices"  # Specify the slug of the dashboard's default panel.


This is all well and good. Now I go to create my Panel called 'invoices' by running the following:

./ -m startpanel invoices --dashboard=MyAccount --target=auto

When I run the command, I receive teh following error:

NameError: name 'invoices' is not defined

Do I have to define my 'invoices' panel in before I create it? Or is this a Chicken and Egg issue?

Thanks in advance :)


edit retag flag offensive close merge delete


Has anyone seen a way for me to add this extra dashboard?

Paul Sanders gravatar imagePaul Sanders ( 2014-01-06 07:19:14 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-01-08 03:16:47 -0500

Sorry for the bump. Just wondered if anyone else has had this issue before?

edit flag offensive delete link more

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



Asked: 2014-01-03 10:24:12 -0500

Seen: 553 times

Last updated: Jan 08 '14