move monkey patches to dedicated file

This commit is contained in:
Nick Sweeting 2024-05-13 02:35:19 -07:00
parent b5ad134264
commit e97d779cd3
No known key found for this signature in database
3 changed files with 21 additions and 4 deletions

View file

@ -0,0 +1,16 @@
__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'