cambio de servidor

This commit is contained in:
David Itehua Xalamihua 2024-11-10 16:38:50 -06:00
parent 9be08c9c48
commit f652e2a761
2 changed files with 6 additions and 3 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
venv .venv

View File

@ -1,4 +1,4 @@
from flask import Flask, render_template, url_for, jsonify, send_file, send_from_directory from flask import Flask, render_template, url_for, jsonify, send_file, send_from_directory, session
from flask_wtf import FlaskForm from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, InputRequired from wtforms.validators import DataRequired, InputRequired
@ -63,6 +63,9 @@ def home():
return render_template('index.html', form=form) return render_template('index.html', form=form)
@app.route('/mapa') @app.route('/mapa')
def mapa(): def mapa():
return render_template('mapa.html') return render_template('mapa.html')
@ -112,4 +115,4 @@ def error_page(e):
return render_template('error_page.html') return render_template('error_page.html')
if __name__ == '__main__': if __name__ == '__main__':
app.run(port=8080, debug=True, host="0.0.0.0") app.run(port=8090, debug=True, host="0.0.0.0")