<div dir="ltr">Hello!<div><br></div><div>In Murano's dashboard we have around 20 parameters that should be changed or added to DJANGO_SETTINGS_MODULE. Currently all these parameters are embedded into openstack_dashboard.settings during install with sed and tools alike (and removed during uninstall).</div>
<div><br></div><div>Recently more clean and elegant way was devised [1]: not to insert code into openstack_dashboard.settings, but define all Murano-specific settings in its own config file which in turn imports the contents of openstack_dashboard.settings. That also requires to change DJANGO_SETTINGS_MODULE environment variable from 'openstack_dashboard.settings' to 'muranodashboard.settings' in django.wsgi file which is referenced in apache config as the entry point for Django-served site (we do not touch original openstack_dashboard wsgi-file, but edit apache config to point to our own muranodashboard/wsgi/django.wsgi file with appropriate environment variable).</div>
<div><br></div><div>While this approach has obvious advantages:</div><div>* Murano-specific parameters are clearly separated from common openstack_dashboard parameters;</div><div>* moreover, customizable Murano parameters inside /etc/murano/murano-dashboard/settings-{prologue,epilogue}.py files are separated from constant muranodashboard settings somewhere in /usr/,</div>
<div>it also reverses in some sense relation between openstack_dashboard and muranodashboard: now muranodashboard.settings file is the main entry point for the whole openstack_dashboard Django application. </div><div><br>
</div><div>As to me, it doesn't pose a serious drawback, because openstack_dashboard is still a main Django application which uses Murano as one of its dashboards, only the order of settings inclusion is reversed. But after investigating and implementing this scheme I might be a bit biased :)... So I'd like to hear your opinion, whether this way of augmenting openstack_dashboard settings is viable or not?</div>
<div><br></div><div>[1] <a href="https://review.openstack.org/#/c/68125/">https://review.openstack.org/#/c/68125/</a></div><div><div><br></div>-- <br><div dir="ltr">Timur Sufiev</div>
</div></div>