<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br></div>I`m trying to create a custom dashboard with a panel.<br><br></div>I`ve created the dashboard and with a panel under /openstack_dashboard/dashboards/.<br></div>
Then I`ve added this to setting.py under INSTALLED_APPS.<br><br>'openstack_dashboard.dashboards.mycustomdashboard',<br><br></div>Howhever if I try to connect to horizon I get:<br><br>Traceback (most recent call last):<br>
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run<br> self.result = application(self.environ, self.start_response)<br> File "/home/vannyenr/horizon-stable/.venv/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 67, in __call__<br>
return self.application(environ, start_response)<br> File "/home/vannyenr/horizon-stable/.venv/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__<br> self.load_middleware()<br>
File "/home/vannyenr/horizon-stable/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 49, in load_middleware<br> mw_instance = mw_class()<br> File "/home/vannyenr/horizon-stable/.venv/local/lib/python2.7/site-packages/django/middleware/locale.py", line 24, in __init__<br>
for url_pattern in get_resolver(None).url_patterns:<br> File "/home/vannyenr/horizon-stable/.venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 346, in url_patterns<br> patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)<br>
File "/home/vannyenr/horizon-stable/.venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 341, in urlconf_module<br> self._urlconf_module = import_module(self.urlconf_name)<br> File "/home/vannyenr/horizon-stable/.venv/local/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module<br>
__import__(name)<br> File "/home/vannyenr/horizon-stable/openstack_dashboard/urls.py", line 38, in <module><br> url(r'', include(horizon.urls))<br> File "/home/vannyenr/horizon-stable/.venv/local/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 27, in include<br>
patterns = getattr(urlconf_module, 'urlpatterns', urlconf_module)<br> File "/home/vannyenr/horizon-stable/.venv/local/lib/python2.7/site-packages/django/utils/functional.py", line 213, in inner<br> self._setup()<br>
File "/home/vannyenr/horizon-stable/.venv/local/lib/python2.7/site-packages/django/utils/functional.py", line 298, in _setup<br> self._wrapped = self._setupfunc()<br> File "/home/vannyenr/horizon-stable/horizon/base.py", line 733, in url_patterns<br>
return self._urls()[0]<br> File "/home/vannyenr/horizon-stable/horizon/base.py", line 767, in _urls<br> url(r'^%s/' % dash.slug, include(dash._decorated_urls)))<br> File "/home/vannyenr/horizon-stable/horizon/base.py", line 468, in _decorated_urls<br>
% self.default_panel)<br>NotRegistered: The default panel "mycustompanel" is not registered.<br><br></div>Howhever in my panel code there is dashboard.mycustomdashboard.register(mycustompanel).<br><br></div>
What am I doing wrong ?<br><br>Cheers,<br></div>Roel<br><div><div><div><div><br></div></div></div></div></div>