From 60c698c0efbdb5f605dd24215d3c684191e233f3 Mon Sep 17 00:00:00 2001 From: thematdev Date: Wed, 8 Sep 2021 14:29:24 +0300 Subject: [PATCH] Removed useless subdomain stuff, NGINX should do it --- app/__init__.py | 10 ++-------- app/templates/index.html | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index d4d45d0..952a087 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -40,7 +40,7 @@ load_dotenv() #@@@@&. (@@@@@@@@@ ** """ -app = Flask(__name__, subdomain_matching=True) +app = Flask(__name__) def generate_iq(): @@ -67,10 +67,4 @@ def index(): data = json.loads(file.read()) cols = data['cols'] projects = data['projects'] - return render_template('index.html', random_number=generate_iq(), projects=projects, - texlink=os.getenv('TEXURL')) - - -@app.route('/', subdomain='tex') -def texindex(): - return render_template('texindex.html') + return render_template('index.html', random_number=generate_iq(), projects=projects) diff --git a/app/templates/index.html b/app/templates/index.html index 599c889..9857fae 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -12,7 +12,7 @@

Тут можно подпись какую-то сделать

Ваш IQ: {{ random_number }}

- + TeX