change debug detection

This commit is contained in:
bakatrouble 2023-05-24 18:05:35 +03:00
parent cd8970d599
commit c145919877

View File

@ -13,7 +13,7 @@ from sanic_ext import Extend
from utils import get_j2env, get_sort_icon, get_sort_link, resolve_path, list_dir
DEBUG = environ.get('ENV', '').upper() != 'PRODUCTION'
DEBUG = Path('.debug').exists()
app = Sanic('autoindex', strict_slashes=True)
Extend(app)