From 57d1a3d4e546d2383f23533bd743568a2621ee03 Mon Sep 17 00:00:00 2001 From: Cristian Date: Fri, 11 Dec 2020 17:49:16 -0500 Subject: [PATCH] refactor: Remove setup_django from html.py --- archivebox/index/html.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/archivebox/index/html.py b/archivebox/index/html.py index 4ead04ce..a62e2c7e 100644 --- a/archivebox/index/html.py +++ b/archivebox/index/html.py @@ -23,7 +23,6 @@ from ..config import ( GIT_SHA, FOOTER_INFO, HTML_INDEX_FILENAME, - setup_django, ) MAIN_INDEX_TEMPLATE = 'main_index.html' @@ -111,7 +110,6 @@ def render_django_template(template: str, context: Mapping[str, str]) -> str: """render a given html template string with the given template content""" from django.template.loader import render_to_string - setup_django(check_db=False) return render_to_string(template, context)