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

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

Merged
merged 1 commit into from
Dec 30, 2019
Merged

Conversation

taldcroft
Copy link
Member

@taldcroft taldcroft commented Dec 30, 2019

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:

  • Linux
  • MacOS

@taldcroft
Copy link
Member Author

taldcroft commented Dec 30, 2019

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

@taldcroft taldcroft merged commit 3fad84e into master Dec 30, 2019
@taldcroft taldcroft deleted the py3-server branch December 30, 2019 17:24
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.

1 participant