mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
manage: Delete custom PYTHONSTARTUP.
In Django 5.2, manage.py shell automatically imports models. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
24e8ba97cb
commit
acd6c51b6f
@@ -1,18 +0,0 @@
|
||||
try:
|
||||
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
|
||||
|
||||
print("\nException importing Zulip core modules on startup!")
|
||||
traceback.print_exc()
|
||||
else:
|
||||
print("\nSuccessfully imported Zulip settings, models, and actions functions.")
|
Reference in New Issue
Block a user