Add logging to API endpoints

This commit is contained in:
Lars van Rhijn
2023-11-24 22:35:16 +01:00
parent 66ac1076d3
commit 8da9672fc1
18 changed files with 398 additions and 107 deletions

View File

@ -17,7 +17,7 @@ if __name__ == "__main__":
# issue is really that Django is missing to avoid masking other
# exceptions on Python 2.
try:
import django
import django # noqa
except ImportError:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "