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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion mica/web/pcad_table.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from kadi import events

import kadi.events.query as events
# 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.

import numpy as np
from Chandra.Time import DateTime
from Ska.engarchive import fetch
Expand Down