zulip/scripts/lib/pythonrc.py

12 lines
439 B
Python

from __future__ import print_function
try:
from django.conf import settings
from zerver.models import *
from zerver.lib.actions import * # type: ignore # Otherwise have duplicate imports with previous line
except Exception:
import traceback
print("\nException importing Zulip core modules on startup!")
traceback.print_exc()
else:
print("\nSuccessfully imported Zulip settings, models, and actions functions.")