Building a Dashboard using Horizon

Asked by rania

i have problem with Building a Dashboard using Horizon on centos 7 with this tutorial found it in openstack
https://docs.openstack.org/developer/horizon/tutorials/dashboard.html
i did finish all the steps but for the final setup for run and chuck dashboard with command tox -e runserver -- 0:9000
when i get to the browser and taping http://localhost:9000 i get this message " A server error occurred. Please contact the administrator." and error in line command :

Traceback (most recent call last):
  File "/usr/lib64/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/home/rania/PythonProject/horizon/.tox/runserver/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__
    return self.application(environ, start_response)
  File "/home/rania/PythonProject/horizon/.tox/runserver/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 170, in __call__
    self.load_middleware()
  File "/home/rania/PythonProject/horizon/.tox/runserver/lib/python2.7/site-packages/django/core/handlers/base.py", line 52, in load_middleware
    mw_instance = mw_class()
  File "/home/rania/PythonProject/horizon/.tox/runserver/lib/python2.7/site-packages/django/middleware/locale.py", line 24, in __init__
    for url_pattern in get_resolver(None).url_patterns:
  File "/home/rania/PythonProject/horizon/.tox/runserver/lib/python2.7/site-packages/django/core/urlresolvers.py", line 401, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/home/rania/PythonProject/horizon/.tox/runserver/lib/python2.7/site-packages/django/core/urlresolvers.py", line 395, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/rania/PythonProject/horizon/openstack_dashboard/urls.py", line 38, in <module>
    url(r'', include(horizon.urls)),
  File "/home/rania/PythonProject/horizon/.tox/runserver/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 34, in include
    patterns = getattr(urlconf_module, 'urlpatterns', urlconf_module)
  File "/home/rania/PythonProject/horizon/.tox/runserver/lib/python2.7/site-packages/django/utils/functional.py", line 225, in inner
    self._setup()
  File "/home/rania/PythonProject/horizon/.tox/runserver/lib/python2.7/site-packages/django/utils/functional.py", line 376, in _setup
    self._wrapped = self._setupfunc()
  File "/home/rania/PythonProject/horizon/horizon/base.py", line 833, in url_patterns
    return self._urls()[0]
  File "/home/rania/PythonProject/horizon/horizon/base.py", line 844, in _urls
    dash._autodiscover()
  File "/home/rania/PythonProject/horizon/horizon/base.py", line 571, in _autodiscover
    if all([isinstance(i, six.string_types) for i in self.panels]):
TypeError: 'type' object is not iterable

can anyone please help me i'am stacking in this part i want to test and i don't know where is the problem exactly and thanks !!!!!

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu openstack-dashboard Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You want a CentOS forum, this is Ubuntu support

Revision history for this message
rania (adouni) said :
#2

andrew do you think the problem in version of machine I don't get it if there problem with this version ,it will not work it from the first step !!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

It's not that the version of machine is an issue. The fact that you are using CentOS means that you are not supported here. This is Ubuntu support only.

Each distribution has its own forums and community.

Revision history for this message
rania (adouni) said :
#4

so if i do this tutorial in ubuntu machine it will work !!
and sorry for inconvenience !!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

I don't know. It's not something I use but it will be supported here and by the Ubuntu community as you will be using Ubuntu. There are distribution agnostic forums which support any flavor of Linux but this is specifically Ubuntu

Revision history for this message
rania (adouni) said :
#6

hi andrew after doing this tutorial in ubuntu and when do tox -e runsever and in browser http://localhost:9000/

i got this error

AttributeERROR at /auth/login
settings object has no attribute 'OPENSTACK_KEYSTON_URL
Request URL http://localhost:9000/auth/login/?next=/

https://scontent.ftun3-1.fna.fbcdn.net/v/t34.0-12/18337221_1282769355175711_2073044429_n.jpg?oh=eb00e8df97300f02dd0c3801662f08dd&oe=590E4E12

Revision history for this message
rania (adouni) said :
#7

hi andrew after doing this tutorial in ubuntu and when do tox -e runsever and in browser http://localhost:9000/

i got this error

AttributeERROR at /auth/login
settings object has no attribute 'OPENSTACK_KEYSTON_URL
Request URL http://localhost:9000/auth/login/?next=/

https://scontent.ftun3-1.fna.fbcdn.net/v/t34.0-12/18337221_1282769355175711_2073044429_n.jpg?oh=eb00e8df97300f02dd0c3801662f08dd&oe=590E4E12

Revision history for this message
Launchpad Janitor (janitor) said :
#8

This question was expired because it remained in the 'Open' state without activity for the last 15 days.