Removed useless subdomain stuff, NGINX should do it
This commit is contained in:
parent
12d2db8799
commit
60c698c0ef
@ -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)
|
||||
|
@ -12,7 +12,7 @@
|
||||
<p> Тут можно подпись какую-то сделать </p>
|
||||
<p> Ваш IQ: {{ random_number }}</p>
|
||||
<div class="btn-container">
|
||||
<a href="{{texlink}}" class="btn btn-tex">
|
||||
<a class="btn btn-tex">
|
||||
TeX
|
||||
</a>
|
||||
<a class="btn" href="https://wiki.thematdev.org">
|
||||
|
Loading…
Reference in New Issue
Block a user