Error while building dashboard through horizon.

asked 2018-05-21 23:32:29 -0600

jyoti.tiwari gravatar image

Hello , I am following the steps given in below link https://docs.openstack.org/horizon/latest/contributor/tutorials/dashboard.html#tutorials-dashboard (https://docs.openstack.org/horizon/la...)

but when i execute 2nd command i am getting error as :-

Traceback (most recent call last):
  File "/opt/stack/jyoti/horizon/manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/stack/jyoti/horizon/.tox/manage/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/opt/stack/jyoti/horizon/.tox/manage/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/stack/jyoti/horizon/.tox/manage/local/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/opt/stack/jyoti/horizon/.tox/manage/local/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/opt/stack/jyoti/horizon/horizon/management/commands/startdash.py", line 62, in handle
    super(Command, self).handle('dash', dash_name, **options)
  File "/opt/stack/jyoti/horizon/.tox/manage/local/lib/python2.7/site-packages/django/core/management/templates.py", line 165, in handle
    template = Engine().from_string(content)
  File "/opt/stack/jyoti/horizon/.tox/manage/local/lib/python2.7/site-packages/django/template/engine.py", line 155, in from_string
    return Template(template_code, engine=self)
  File "/opt/stack/jyoti/horizon/.tox/manage/local/lib/python2.7/site-packages/django/template/base.py", line 191, in __init__
    self.nodelist = self.compile_nodelist()
  File "/opt/stack/jyoti/horizon/.tox/manage/local/lib/python2.7/site-packages/django/template/base.py", line 230, in compile_nodelist
    return parser.parse()
  File "/opt/stack/jyoti/horizon/.tox/manage/local/lib/python2.7/site-packages/django/template/base.py", line 515, in parse
    raise self.error(token, e)
django.template.exceptions.TemplateSyntaxError: 'horizon' is not a registered tag library. Must be one of:

ERROR: InvocationError for command '/opt/stack/jyoti/horizon/.tox/manage/bin/python /opt/stack/jyoti/horizon/manage.py startdash mydashboard --target openstack_dashboard/dashboards/mydashboard' (exited with code 1)
_______________________________________________________________ summary _______________________________________________________________
ERROR:   manage: commands failed
edit retag flag offensive close merge delete