2016-03-11 09:26:44 +01:00
|
|
|
try:
|
2024-03-27 19:52:55 +01:00
|
|
|
from django.conf import settings
|
2020-06-11 00:54:34 +02:00
|
|
|
|
2022-10-29 03:24:55 +02:00
|
|
|
from analytics.models import * # noqa: F403
|
|
|
|
from zerver.models import * # noqa: F403
|
2024-03-27 19:52:55 +01:00
|
|
|
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
|
2016-03-11 09:26:44 +01:00
|
|
|
except Exception:
|
|
|
|
import traceback
|
2021-02-12 08:19:30 +01:00
|
|
|
|
2016-03-11 09:26:44 +01:00
|
|
|
print("\nException importing Zulip core modules on startup!")
|
|
|
|
traceback.print_exc()
|
|
|
|
else:
|
|
|
|
print("\nSuccessfully imported Zulip settings, models, and actions functions.")
|