fix import errors

This commit is contained in:
Nick Sweeting 2024-09-30 19:32:57 -07:00
parent 51fe4c38c2
commit 2a1645ba27
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View file

@ -14,7 +14,7 @@ from admin_data_views.typing import TableContext, ItemContext
from admin_data_views.utils import render_with_table_view, render_with_item_view, ItemLink from admin_data_views.utils import render_with_table_view, render_with_item_view, ItemLink
from archivebox.config import CONSTANTS from archivebox.config import CONSTANTS
from archivebox.util import parse_date from archivebox.misc.util import parse_date
def obj_to_yaml(obj: Any, indent: int=0) -> str: def obj_to_yaml(obj: Any, indent: int=0) -> str:

View file

@ -7,9 +7,7 @@ For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
""" """
import os from archivebox.config.legacy import setup_django
from archivebox.config import setup_django
setup_django(in_memory_db=False, check_db=True) setup_django(in_memory_db=False, check_db=True)