mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
23 lines
632 B
Python
23 lines
632 B
Python
__package__ = 'archivebox'
|
|
|
|
import django_stubs_ext
|
|
|
|
django_stubs_ext.monkeypatch()
|
|
|
|
|
|
# monkey patch django timezone to add back utc (it was removed in Django 5.0)
|
|
import datetime
|
|
from django.utils import timezone
|
|
timezone.utc = datetime.timezone.utc
|
|
|
|
|
|
# monkey patch django-signals-webhooks to change how it shows up in Admin UI
|
|
# from signal_webhooks.apps import DjangoSignalWebhooksConfig
|
|
# DjangoSignalWebhooksConfig.verbose_name = 'API'
|
|
|
|
|
|
# Install rich for pretty tracebacks in console logs
|
|
# https://rich.readthedocs.io/en/stable/traceback.html#traceback-handler
|
|
from rich.traceback import install
|
|
|
|
install(show_locals=True)
|