sot / mica

Microscope on Chandra aspect
https://sot.github.io/mica
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Fix an issue in PCAD table viewer with django 2+ #212

Closed taldcroft closed 4 years ago

taldcroft commented 4 years ago

This import style (instead of "from kadi import events") is required due to a conflict with how the django app is initialized and standalone usage since django 2+. Basically events/__init__.py in a django app does not get the auto-generated query references because DJANGO_SETTINGS_MODULE is set.

Testing

This works in the ska3-django3 test environment using the django dev server:

taldcroft commented 4 years ago

This change is so small and uncontroversial that I am merging without review (noting that the production kadi web server is still on Ska2).