[Rdo-list] Developing Horizon dashboards with RDO

Gregor Berginc gregor.berginc at gmail.com
Mon Feb 22 08:53:05 UTC 2016


OpenStack dashboards are installed in /usr/share/openstack-dashboard. Since
this directory also contains the manage.py script I wanted to see if it is
possible to use it for development of new plugins. I started the server
(along with the actual Horizon) using:

sudo python manage.py runserver 0.0.0.0:8888

When I navigated to http://host:8888/ I got the dashboard but without any
style (see http://imgur.com/EKS1PIQ). When I restart the httpd, it is
properly refreshed, but it is a bit cumbersome to develop and debug the
plugin with this approach.

I resolved it as Kevin suggested by cloning another copy of Horizon and
working with it there.

Thanks,
-Gregor

On 22 February 2016 at 09:41, Matthias Runge <mrunge at redhat.com> wrote:

> On 18/02/16 13:54, Gregor Berginc wrote:
> > Dear all,
> >
> > I've just migrated from devstack to RDO because it was much easier to
> > deploy and configure OpenStack on my dev machine.
> >
> > One thing, unfortunately, I couldn't have found. Is there a way to
> > facilitate the development of Horizon dashboards? I've noticed that
> > dashboards are installed in /usr/shared/openstack-dashboard. I can
> > deploy new dashboards and use them by restarting the httpd. The
> > directory also has manage.py, but it doesn't seem to work properly (at
> > least static resources are missing).
> >
> > Thus, I am wondering if there is a way to launch a separate development
> > server for Horizon dashboards?
> >
> > Thanks in advance,
> > -Gregor
> >
>
> What do you mean by 'static resources are missing'?
>
> httpd restart runs collectstatic and also runs compress. That means, if
> your dashboard is added via plugin, it should be picked up automatically.
>
> Matthias
>
> _______________________________________________
> Rdo-list mailing list
> Rdo-list at redhat.com
> https://www.redhat.com/mailman/listinfo/rdo-list
>
> To unsubscribe: rdo-list-unsubscribe at redhat.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rdoproject.org/pipermail/dev/attachments/20160222/49e79376/attachment.html>


More information about the dev mailing list