From 8f0f41e23632656bc98593b0574cba58f0ed16c2 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 27 Mar 2024 11:52:55 -0700 Subject: [PATCH] pythonrc: Add various frequently handy imports. --- scripts/lib/pythonrc.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/lib/pythonrc.py b/scripts/lib/pythonrc.py index 164919bd42..f078c44fa0 100644 --- a/scripts/lib/pythonrc.py +++ b/scripts/lib/pythonrc.py @@ -1,8 +1,14 @@ try: - from django.conf import settings # noqa: F401 + from django.conf import settings from analytics.models import * # noqa: F403 from zerver.models import * # noqa: F403 + from zerver.models.realms import * # noqa: F403 + from zerver.models.streams import * # noqa: F403 + from zerver.models.users import * # noqa: F403 + + if settings.CORPORATE_ENABLED: + from corporate.lib.stripe import * # noqa: F403 except Exception: import traceback