Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update data_containers and bokeh_dashboard to use Django models #1668

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

bhilbert4
Copy link
Collaborator

Resolves #1486

Replace sqlalchemy queries with Django model queries in several functions/classes.

In order to make build_tables() work with an arbitrary model, I had to make adjustments so that monitor models are imported at the time of app initialization. This wasn't happening previously because those models are not defined in models.py. By adding the apps.py file with the imports, and then adding a reference to that into settings.py, the monitor models are now imported and available at app initialization.

Local testing showed everything working.

@bhilbert4 bhilbert4 self-assigned this Jan 16, 2025
@pep8speaks
Copy link

pep8speaks commented Jan 16, 2025

Hello @bhilbert4, Thank you for updating !

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated at 2025-01-16 16:42:12 UTC

@bhilbert4
Copy link
Collaborator Author

@mfixstsci this is also ready for review

@bhilbert4 bhilbert4 requested a review from mfixstsci January 16, 2025 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update data_containers to use django
2 participants