Good evening Hamilton community! I was looking for...
# hamilton-help
k
Good evening Hamilton community! I was looking for some guidance on getting Hamilton UI up and running in an existing Django projects (e.g., add as an installed app and add urls). I see the code under hamilton UI and I add hamilton_ui to INSTALLED_APPS and the urls mapped to /hamilton end point, but there are modules under hamilton_ui that are referenced without the hamilton_ui root package (e.g., trackingserver_auth).
e
So I haven’t tried it, but it shouldn’t be too hard to do. The Hamilton UI has quite a few apps actually — it’s a combination of them. I imagine, at a high level, you would have to: 1. Find all the hamilton apps 2. Include them in your app 3. Add
/hamilton
to the path
k
Thanks @Elijah Ben Izzy! I was able to figure it. I had to update the PYTHONPATH to include up until the
hamilton_ui
directory under the venv. From there it recognized the packages and able to import them. Now it is just a matter of config settings for the underlying Django app for Hamilton (e.g., models, db settings, etc.)
Hoping this works. We are attempting to integrate Hamilton data pipelines into our existing app that runs locally and on PCF and soon OpenShift.
e
Awesome! Great to hear. If you have any code to contribute back/snippets to share that would be great. We could stick it in the docs/a quick blog post! Otherwise let us know if you have any other hamilton needs.