Skip to content

Commit

Permalink
refactor: Remove setup_django from html.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cdvv7788 committed Dec 11, 2020
1 parent ce53b02 commit 57d1a3d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions archivebox/index/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
GIT_SHA,
FOOTER_INFO,
HTML_INDEX_FILENAME,
setup_django,
)

MAIN_INDEX_TEMPLATE = 'main_index.html'
Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit 57d1a3d

Please sign in to comment.