This commit is contained in:
Aevann1 2022-02-08 16:49:49 +02:00
parent e049e87248
commit d4a33c06ce
5 changed files with 44 additions and 35 deletions

View file

@ -17,9 +17,9 @@ from sys import stdout
import faulthandler
from json import loads
f = 'files/templates/sidebar_' + environ.get("SITE_NAME").strip() + '.html'
if not path.exists(f):
with open(f, 'w', encoding="utf-8"): pass
for f in (f'files/templates/sidebar_{environ.get("SITE_NAME").strip()}.html', 'disable_signups'):
if not path.exists(f):
with open(f, 'w', encoding="utf-8"): pass
app = Flask(__name__, template_folder='templates')
app.url_map.strict_slashes = False