*** rhagarty has joined #openstack-app-catalog | 00:10 | |
*** kebray has quit IRC | 01:46 | |
*** kebray has joined #openstack-app-catalog | 03:26 | |
docaedo | worked through so much fun with wsgi, pip, app-catalog ) | 04:38 |
---|---|---|
docaedo | :) | 04:39 |
docaedo | close close close, but not there yet - now realized after pip install of app catalog, api/v1.py is trying to open f = open('openstack_catalog/web/api/v1/assets', 'r') | 04:40 |
docaedo | tomorrow I'll figure out how to tell it where to (reliably) find the proper root, and we'll be able to switch over to the API - wheeee! | 04:41 |
*** kebray has quit IRC | 06:17 | |
*** openstackgerrit has quit IRC | 14:31 | |
*** openstackgerrit has joined #openstack-app-catalog | 14:32 | |
kfox1111 | ah. right... | 17:13 |
docaedo | Turns out infra doesn't do virtual environments for anything they host :) So I have a few tweaks to make on that front. | 17:15 |
kfox1111 | https://bugzilla.redhat.com/show_bug.cgi?id=1268372 | 17:15 |
openstack | bugzilla.redhat.com bug 1268372 in Package Review "Review Request: openstack-app-catalog-ui - openstack horizon plugin for the openstack app-catalog" [Medium,Assigned] - Assigned to mrunge | 17:15 |
kfox1111 | grrrrrrrrrrrrr | 17:15 |
kfox1111 | ah. | 17:16 |
docaedo | Can also make a template for setup.cfg so we can set a base directory for the v1.py file | 17:16 |
kfox1111 | all of our deps shoudl be packaged. since we're just depending on stuf horizon does too. | 17:16 |
kfox1111 | probably better to tweak settings.py | 17:16 |
docaedo | ah right, that makes sense | 17:18 |
docaedo | Just have to set STATIC_ROOT then, easy :) | 17:19 |
*** kebray has joined #openstack-app-catalog | 17:36 | |
*** kebray has quit IRC | 17:50 | |
*** kebray has joined #openstack-app-catalog | 18:11 | |
*** kebray has quit IRC | 18:27 | |
*** kebray has joined #openstack-app-catalog | 18:42 | |
*** kebray has quit IRC | 18:56 | |
kfox1111 | yeah. | 19:00 |
*** kebray has joined #openstack-app-catalog | 19:01 | |
docaedo | On that very topic | 19:01 |
docaedo | just now looking at the askbot puppet manifest, looks like they just have a copy of the settings.py file in templates directory. | 19:02 |
docaedo | I don't much like that approach, because then if/when we change settings.py, we have to push an infra change | 19:03 |
*** kebray has quit IRC | 19:04 | |
docaedo | Any ideas on a clever way of putting this in settings.py so we can default to "production" values (compress on, debug off, known path for the static files, etc.) | 19:04 |
docaedo | Then we can default to that, and have a second set of values for development that can be switched when running locally? | 19:04 |
kfox1111 | hmmm.... | 19:06 |
kfox1111 | how about at the bottom of settings.py we add | 19:07 |
kfox1111 | try: | 19:07 |
kfox1111 | from openstack_catalog.local_settings import * | 19:07 |
kfox1111 | except: | 19:07 |
kfox1111 | pass | 19:07 |
kfox1111 | we won't add that file into git. | 19:08 |
kfox1111 | then the infra stuff can setup override settings in there. | 19:08 |
docaedo | that would work I think | 19:10 |
docaedo | oh v1.py doesn't even try to find the static root? Or is static_root something meant to be used with/for manage.py collectstatic? | 19:28 |
kfox1111 | yeah, I think its for collectstatic | 19:45 |
kfox1111 | you should be able to import openstack_catalog.settings from v1.py I think though, and get at the values. | 19:45 |
*** openstack has joined #openstack-app-catalog | 21:06 | |
*** kebray has joined #openstack-app-catalog | 21:20 | |
*** kebray has quit IRC | 21:22 | |
*** kebray has joined #openstack-app-catalog | 21:26 | |
*** kebray has quit IRC | 22:08 | |
*** kebray has joined #openstack-app-catalog | 22:26 | |
*** kebray has quit IRC | 23:10 | |
*** kebray has joined #openstack-app-catalog | 23:50 | |
*** kebray_ has joined #openstack-app-catalog | 23:51 | |
*** kebray has quit IRC | 23:54 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!